aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/alacritty/alacritty.common.toml
blob: 9f3fccc059249cc684228ae5241e4344e25f51a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[colors]
transparent_background_colors = true

[colors.bright]
black = "#002833"
blue = "#839495"
cyan = "#93a0a1"
green = "#586d74"
magenta = "#6c6ec6"
red = "#cb3a16"
white = "#fdf6e3"
yellow = "#657b82"

[colors.cursor]
cursor = "#b1b1c8"
text = "#100f1f"

[colors.normal]
black = "#003440"
blue = "#268ad2"
cyan = "#2aa197"
green = "#859901"
magenta = "#d33582"
red = "#dc321e"
white = "#eee8d5"
yellow = "#b58900"

[colors.primary]
background = "#101020"
foreground = "#b1b1c8"

[colors.selection]
background = "#1f1f2f"
text = "CellForeground"

[font]
size = 16.0

[font.normal]
family = "Source Han Code JP"

[scrolling]
history = 0

[shell]
program = "/bin/bash"
args = ["-c", '''
export PATH="$PATH:$HOME/.nix-profile/bin";
if command -v tmux >/dev/null; then
  if command -v fzf >/dev/null; then
    session="$(
      { tmux ls -F "#{session_name}" 2>/dev/null; echo "New (n)"; } \
      | fzf \
          --no-sort \
          --reverse \
          --no-info \
          --prompt="Select tmux session: " \
          --select-1 \
          --bind='n:last+accept' \
          --no-mouse
    )";
    if [ "$session" = "New (n)" ]; then
      tmux new -s "$(date '+%Y-%m-%d %H%M%S')";
    else
      tmux attach -t "$session";
    fi
  else
    tmux new -s "$(date '+%Y-%m-%d %H%M%S')";
  fi
else
  zsh;
fi
''']

[window]
opacity = 0.9

[window.padding]
x = 4
y = 3