-
Notifications
You must be signed in to change notification settings - Fork 0
/
catppuccin.tmux
executable file
·54 lines (40 loc) · 1.4 KB
/
catppuccin.tmux
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
#!/usr/bin/env bash
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
theme_option="@catppuccin-theme"
default_theme="mocha"
get_tmux_option() {
local option="$1"
local default_value="$2"
local option_value="$(tmux show-option -gqv "$option")"
if [ -z "$option_value" ]; then
echo "$default_value"
else
echo "$option_value"
fi
}
main() {
local theme="$(get_tmux_option "$theme_option" "$default_theme")"
source "$CURRENT_DIR/themes/catppuccin_${theme}.sh"
# status bar
tmux set-option -g status-style fg=$foreground,bg=$background
# default window title colors
tmux set-window-option -g window-status-style fg=$foreground,bg=$surface0
# active window title colors
tmux set-window-option -g window-status-current-style fg=$crust,bg=$mauve
# window status format
tmux set-window-option -g window-status-format " #I #W "
tmux set-window-option -g window-status-current-format " #I #W "
# pane border
tmux set-option -g pane-border-style fg=$lavender
tmux set-option -g pane-active-border-style fg=$mauve
# message text
tmux set-option -g message-style fg=$peach,bg=$surface2
# pane number display
tmux set-option -g display-panes-active-colour $sky
tmux set-option -g display-panes-colour $peach
# clock
tmux set-window-option -g clock-mode-colour $green
# bell
tmux set-window-option -g window-status-bell-style fg=$background,bg=$red
}
main