diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tmux.conf | 58 |
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 | |||
30 | bind C-w select-layout even-vertical | 30 | bind C-w select-layout even-vertical |
31 | bind C-e select-layout main-horizontal | 31 | bind C-e select-layout main-horizontal |
32 | bind C-r select-layout main-vertical | 32 | bind 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 | ||
37 | color_orange="colour166" # 208, 166 | ||
38 | color_purple="colour134" # 135, 134 | ||
39 | color_green="colour076" # 070 | ||
40 | color_blue="colour39" | ||
41 | color_yellow="colour220" | ||
42 | color_red="colour160" | ||
43 | color_black="colour232" | ||
44 | color_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 | ||
48 | color_dark="$color_black" | ||
49 | color_light="$color_white" | ||
50 | color_session_text="$color_blue" | ||
51 | color_status_text="colour245" | ||
52 | color_main="$color_orange" | ||
53 | color_secondary="$color_purple" | ||
54 | color_level_ok="$color_green" | ||
55 | color_level_warn="$color_yellow" | ||
56 | color_level_stress="$color_red" | ||
57 | color_window_off_indicator="colour088" | ||
58 | color_window_off_status_bg="colour238" | ||
59 | color_window_off_status_current_bg="colour254" | ||
60 | |||
61 | # nested tmux | ||
62 | |||
63 | bind -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 | |||
72 | bind -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 | |||
79 | bind -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 | |||
90 | set -g status-right "$wg_is_keys_off #{sysstat_cpu} | #{sysstat_mem} | #{sysstat_loadavg} | $wg_user_host" | ||