aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-03 13:00:00 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-03 20:22:37 +0800
commitbaca4283380988bb7800e5d6e24dda439069979f (patch)
tree2f018e6688ac159f1cbb85fbbc264dd00df2cc91 /misc
parentd1b57c1d68fa60a4a67c208f29b739ef0f20d5c5 (diff)
Update
Diffstat (limited to 'misc')
-rw-r--r--misc/tmux.conf29
1 files changed, 14 insertions, 15 deletions
diff --git a/misc/tmux.conf b/misc/tmux.conf
index 013aee8..c034bd4 100644
--- a/misc/tmux.conf
+++ b/misc/tmux.conf
@@ -1,3 +1,5 @@
1new-session # Start a new session if none available
2
1# tty 3# tty
2set -g default-terminal "tmux-256color" 4set -g default-terminal "tmux-256color"
3set -ag terminal-overrides ",xterm-256color:RGB" 5set -ag terminal-overrides ",xterm-256color:RGB"
@@ -8,13 +10,13 @@ set -gw xterm-keys on
8unbind C-b 10unbind C-b
9set -g prefix C-g 11set -g prefix C-g
10 12
11# status bar
12set-window-option -g window-status-current-style bg=yellow
13
14# Tab key 13# Tab key
15bind-key -nr C-_ send-keys C-/ 14bind-key -nr C-_ send-keys C-/
16 15
17new-session # Start a new session if none available 16# status bar
17set-option status-style fg=#ffffff,bg=blue
18set-window-option -g window-status-current-style fg=black,bg=yellow
19
18 20
19bind N new-session 21bind N new-session
20bind-key -n C-F3 set -g status #Ctrl+F3 Combo 22bind-key -n C-F3 set -g status #Ctrl+F3 Combo
@@ -60,14 +62,14 @@ color_window_off_status_current_bg="colour254"
60 62
61# nested tmux 63# nested tmux
62 64
63bind -T root S-F12 \ 65#bind -T root S-F12 \
64 set prefix None \;\ 66# set prefix None \;\
65 set key-table off \;\ 67# set key-table off \;\
66 set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\ 68# set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
67 set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\ 69# set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
68 set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\ 70# set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
69 if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\ 71# if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
70 refresh-client -S \;\ 72# refresh-client -S \;\
71 73
72bind -T root F12 \ 74bind -T root F12 \
73 set prefix None \;\ 75 set prefix None \;\
@@ -80,9 +82,6 @@ bind -T off F12 \
80 set -u prefix \;\ 82 set -u prefix \;\
81 set -u key-table \;\ 83 set -u key-table \;\
82 set -u status \;\ 84 set -u status \;\
83 set -u status-style \;\
84 set -u window-status-current-style \;\
85 set -u window-status-current-format \;\
86 refresh-client -S 85 refresh-client -S
87 86
88#wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]" 87#wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]"