tmux: status line tweaks

- Add server PID to right side.
- Current window name is bold.
- Last window index shown in color.
- Active pane border is now blue.
This commit is contained in:
Fernando Schauenburg 2024-08-02 01:06:27 +02:00
parent 86e2687bca
commit 32a14e5b61

View file

@ -94,24 +94,25 @@ set-environment -gu SHLVL
# #
# Style (status list, colors, ...) # Style (status list, colors, ...)
# #
set -g status-left ' ' set -g status-left ' ' # 󰄴 󰣕 󰬫 󰻃 󰪥 󰬪    󰡖 󰄱
set -g status-right '\ set -g status-right '\
#[fg=brightblack] \ #[fg=brightblack] \
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pane_id}\ #{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pane_id}\
#[fg=brightblack]  \ #[fg=brightblack]  \
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{session_name}\ #{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{session_name}\
#[fg=brightblack]  \ #[fg=brightblack]  \
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{host_short} ' #{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{pid} @ #{host_short} '
setw -g window-status-current-format '\ setw -g window-status-current-format '\
#{?client_prefix,#[fg=brightyellow],#[fg=brightcyan]}#{window_index} \ #{?client_prefix,#[fg=brightyellow],#[fg=brightcyan]}#{window_index} \
#[fg=brightblue]#{window_name} \ #[bold]#[fg=blue]#{window_name}#[nobold] \
#{?client_prefix,#[fg=brightyellow],#[fg=brightcyan]}\ #{?client_prefix,#[fg=brightyellow],#[fg=brightcyan]}\
#{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}\ #{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}\
#[fg=brightblack]' #[fg=brightblack]'
setw -g window-status-format '\ setw -g window-status-format '\
#{?client_prefix,#[fg=brightyellow],#[fg=brightblack]}#{window_index} \ #{?client_prefix,#[fg=brightyellow],#{?window_last_flag,#[fg=cyan],#[fg=brightblack]}}\
#{window_index} \
#[fg=brightblack]#{window_name} \ #[fg=brightblack]#{window_name} \
#{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}\ #{?pane_synchronized,󰵉 ,}#{?window_marked_flag,󰄵 ,}#{?window_zoomed_flag, ,}\
#[fg=brightblack]' #[fg=brightblack]'
@ -119,6 +120,6 @@ setw -g window-status-format '\
set -g status-justify left set -g status-justify left
set -g status-style fg=white,bg=black set -g status-style fg=white,bg=black
set -g pane-border-style fg=black set -g pane-border-style fg=black
set -g pane-active-border-style fg=brightblack set -g pane-active-border-style fg=brightblue
set -g message-style fg=brightwhite,bg=black set -g message-style fg=brightwhite,bg=black
set -g message-command-style fg=yellow,bg=black set -g message-command-style fg=yellow,bg=black