tmux: add rounded status-line option
This commit is contained in:
parent
63fe5901e9
commit
933d302e91
1 changed files with 44 additions and 11 deletions
|
@ -102,25 +102,57 @@ set-environment -gu SHLVL
|
|||
#
|
||||
# Style (status list, colors, ...)
|
||||
#
|
||||
background="#1d2021"
|
||||
highlight="#b57614"
|
||||
current_badge="#076678"
|
||||
current_bg="#003848"
|
||||
current_fg="#83a598"
|
||||
window_badge="#504945"
|
||||
window_fg="#7c6f64"
|
||||
|
||||
set -g pane-border-style fg=black
|
||||
set -g pane-active-border-style fg=brightblue
|
||||
set -g message-style fg=brightwhite,bg=black
|
||||
set -g message-command-style fg=yellow,bg=black
|
||||
|
||||
set -g status-style bg=${background}
|
||||
set -g status-justify left
|
||||
set -g status-left ""
|
||||
set -g status-right-length 64
|
||||
|
||||
highlight="#b57614"
|
||||
current_badge="#076678"
|
||||
current_bg="#003848"
|
||||
current_fg="#83a598"
|
||||
window_badge="#665c54"
|
||||
window_fg="#7c6f64"
|
||||
|
||||
flags="#{?pane_synchronized, ,}#{?window_marked_flag, ,}#{?window_zoomed_flag, ,}"
|
||||
|
||||
%if "${TMUX_ROUNDED}"
|
||||
|
||||
background="#131516"
|
||||
window_bg="#282828"
|
||||
|
||||
set -g status-style bg=${background}
|
||||
|
||||
setw -g window-status-format "\
|
||||
#[fg=#{?client_prefix,${highlight},${window_badge}}]#[reverse]#{window_index} #[noreverse]\
|
||||
#[fg=#{?window_last_flag,${current_fg},${window_fg}} bg=${window_bg}] #{window_name} ${flags}\
|
||||
#[fg=${window_bg} bg=${background}] "
|
||||
|
||||
setw -g window-status-current-format "\
|
||||
#[fg=#{?client_prefix,${highlight},${current_badge}}]#[reverse]#{window_index} #[noreverse]\
|
||||
#[fg=${current_fg} bg=${current_bg}] #{window_name} ${flags}\
|
||||
#[fg=${current_bg} bg=${background}] "
|
||||
|
||||
pill_begin="#[fg=#{?client_prefix,${highlight},${window_badge}}]#[reverse]"
|
||||
pill_mid="#[noreverse]#[fg=${window_fg} bg=${window_bg}]"
|
||||
pill_end="#[fg=${window_bg} bg=${background}]"
|
||||
|
||||
set -g status-right "\
|
||||
${pill_begin} ${pill_mid} #{pane_id}${pill_end} \
|
||||
${pill_begin} ${pill_mid} #{session_name}${pill_end} \
|
||||
${pill_begin} ${pill_mid} #{pid}${pill_end} \
|
||||
${pill_begin} ${pill_mid} #{host_short}${pill_end} "
|
||||
|
||||
%else
|
||||
|
||||
background="#1d2021"
|
||||
|
||||
set -g status-style bg=${background}
|
||||
|
||||
setw -g window-status-format "\
|
||||
#[fg=${background} bg=#{?client_prefix,${highlight},${window_badge}} bold] #{window_index} \
|
||||
#[fg=#{?window_last_flag,${current_fg},${window_fg}} bg=${background} nobold] #{window_name} ${flags}\
|
||||
|
@ -135,9 +167,10 @@ box_begin="#[fg=${background} bg=#{?client_prefix,${highlight},${window_badge}}
|
|||
box_mid="#[fg=${window_fg} bg=${background} nobold]"
|
||||
box_end="#[default]"
|
||||
|
||||
set -g status-right-length 64
|
||||
set -g status-right "\
|
||||
${box_begin} ${box_mid} #{pane_id} ${box_end} \
|
||||
${box_begin} ${box_mid} #{session_name} ${box_end} \
|
||||
${box_begin} ${box_mid} #{pid} ${box_end} \
|
||||
${box_begin} ${box_mid} #{host_short} ${box_end}"
|
||||
|
||||
%endif
|
||||
|
|
Loading…
Add table
Reference in a new issue