aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/tmux.conf58
1 files changed, 58 insertions, 0 deletions
diff --git a/misc/tmux.conf b/misc/tmux.conf
index bc69b14..013aee8 100644
--- a/misc/tmux.conf
+++ b/misc/tmux.conf
@@ -30,3 +30,61 @@ bind C-q select-layout even-horizontal
30bind C-w select-layout even-vertical 30bind C-w select-layout even-vertical
31bind C-e select-layout main-horizontal 31bind C-e select-layout main-horizontal
32bind C-r select-layout main-vertical 32bind C-r select-layout main-vertical
33
34# color
35# Feel free to NOT use this variables at all (remove, rename)
36# this are named colors, just for convenience
37color_orange="colour166" # 208, 166
38color_purple="colour134" # 135, 134
39color_green="colour076" # 070
40color_blue="colour39"
41color_yellow="colour220"
42color_red="colour160"
43color_black="colour232"
44color_white="white" # 015
45
46# This is a theme CONTRACT, you are required to define variables below
47# Change values, but not remove/rename variables itself
48color_dark="$color_black"
49color_light="$color_white"
50color_session_text="$color_blue"
51color_status_text="colour245"
52color_main="$color_orange"
53color_secondary="$color_purple"
54color_level_ok="$color_green"
55color_level_warn="$color_yellow"
56color_level_stress="$color_red"
57color_window_off_indicator="colour088"
58color_window_off_status_bg="colour238"
59color_window_off_status_current_bg="colour254"
60
61# nested tmux
62
63bind -T root S-F12 \
64 set prefix None \;\
65 set key-table off \;\
66 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]" \;\
68 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' \;\
70 refresh-client -S \;\
71
72bind -T root F12 \
73 set prefix None \;\
74 set key-table off \;\
75 set status off \;\
76 if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
77 refresh-client -S \;\
78
79bind -T off F12 \
80 set -u prefix \;\
81 set -u key-table \;\
82 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
87
88#wg_is_keys_off="#[fg=$color_light,bg=$color_window_off_indicator]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[default]"
89
90set -g status-right "$wg_is_keys_off #{sysstat_cpu} | #{sysstat_mem} | #{sysstat_loadavg} | $wg_user_host"