aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/alacritty/alacritty.common.toml
blob: 0a984ea61be87acc0a0a26b81b2df11e7841848b (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
[colors]
transparent_background_colors = true

[font]
size = 16.0

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

[scrolling]
history = 0

[terminal.shell]
program = "/bin/bash"
args = ["-c", '''
export PATH="$HOME/.nix-profile/bin:$PATH";
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
  fish;
fi
''']

[window]
opacity = 0.9

[window.padding]
x = 4
y = 3

[terminal]