tmux: remove %hidden
%if '#{>=:#{version},3.2}' is correct, but tmux 3.1 still complains about it, even though it is never executed.
This commit is contained in:
parent
afae5be0d4
commit
905300b48f
26
.tmux.conf
26
.tmux.conf
|
@ -37,27 +37,23 @@ set-option -g set-titles-string "#T"
|
|||
set -g mouse off
|
||||
|
||||
# THEME
|
||||
%if '#{>=:#{version},3.2}'
|
||||
%hidden colour_status1="colour61" # violet
|
||||
%hidden colour_status2="colour97" # dark pink
|
||||
%hidden colour_inactive="colour237" # dark grey
|
||||
%else
|
||||
colour_status1="colour61" # violet
|
||||
colour_status2="colour97" # dark pink
|
||||
colour_inactive="colour237" # dark grey
|
||||
%endif
|
||||
tmux_colour_status1="colour61" # violet
|
||||
tmux_colour_status2="colour97" # dark pink
|
||||
tmux_colour_inactive="colour237" # dark grey
|
||||
# NOTE: Prefix with %hidden since 3.2, but can't figure out how to do
|
||||
# conditionally. Correct %if still complains.
|
||||
|
||||
# Status line
|
||||
set -g status-style fg=${colour_status1}
|
||||
set -g status-style fg=${tmux_colour_status1}
|
||||
set -g status-interval 10
|
||||
set -g status-left-length 30
|
||||
set -g status-left ''
|
||||
set -g status-right "#[fg=${colour_inactive}]#(hostname --short)#[default] #[fg=${colour_status2}]#(cut -d ' ' -f 1-3 /proc/loadavg)#[default]"
|
||||
set -g status-right "#[fg=${tmux_colour_inactive}]#(hostname --short)#[default] #[fg=${tmux_colour_status2}]#(cut -d ' ' -f 1-3 /proc/loadavg)#[default]"
|
||||
|
||||
# Window indicators.
|
||||
set-window-option -g window-status-style fg=${colour_status1}
|
||||
set-window-option -g window-status-current-style fg=black,bg=${colour_status1}
|
||||
set-window-option -g window-status-style fg=${tmux_colour_status1}
|
||||
set-window-option -g window-status-current-style fg=black,bg=${tmux_colour_status1}
|
||||
|
||||
# Window borders.
|
||||
set-option -g pane-border-style fg=${colour_inactive}
|
||||
set-option -g pane-active-border-style fg=${colour_status1}
|
||||
set-option -g pane-border-style fg=${tmux_colour_inactive}
|
||||
set-option -g pane-active-border-style fg=${tmux_colour_status1}
|
||||
|
|
Loading…
Reference in New Issue
Block a user