feat tmux: 調整statusbar顯示組件內容

This commit is contained in:
Yuan Chiu 2025-06-01 22:14:22 +08:00
parent b5bf45ed91
commit 8edae81ffc
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -51,10 +51,10 @@ set -g @mode_indicator_sync_mode_style 'bg=red,fg=black,bold'
set -g @mode_indicator_empty_mode_style 'bg=cyan,fg=black,bold' set -g @mode_indicator_empty_mode_style 'bg=cyan,fg=black,bold'
# stàle the element at the start of the indicator in <mode> mode (replace it with prefix, copy, sync or empty) # stàle the element at the start of the indicator in <mode> mode (replace it with prefix, copy, sync or empty)
set -g @mode_indicator_prefix_mode_end_style 'fg=green,bg=pink' set -g @mode_indicator_prefix_mode_end_style 'fg=green,bg=yellow'
set -g @mode_indicator_copy_mode_end_style 'fg=violet,bg=pink' set -g @mode_indicator_copy_mode_end_style 'fg=violet,bg=yellow'
set -g @mode_indicator_sync_mode_end_style 'fg=red,bg=pink' set -g @mode_indicator_sync_mode_end_style 'fg=red,bg=yellow'
set -g @mode_indicator_empty_mode_end_style 'fg=cyan,bg=pink' set -g @mode_indicator_empty_mode_end_style 'fg=cyan,bg=yellow'
# == StatusBar Configure ====================================================== # == StatusBar Configure ======================================================
# tmux show-options -g | grep status-left # tmux show-options -g | grep status-left
@ -67,8 +67,8 @@ set -g status-right-length 100
set -g status-bg default set -g status-bg default
set -g status-fg white set -g status-fg white
set -g status-style "bg=black,fg=white" set -g status-style "bg=black,fg=white"
set -g status-left "#{tmux_mode_indicator}#[fg=black,bg=pink] ↑ #{uptime} #[fg=pink,bg=yellow]#[fg=black,bg=yellow] ❐ #{session_name} #[fg=yellow,bg=default] " set -g status-left "#{tmux_mode_indicator}#[fg=black,bg=yellow]#[fg=black,bg=yellow] ❐ #{session_name} #[fg=yellow,bg=default] "
set -g status-right "#[fg=gray,bg=default] ⇄ #{net_speed} #[bg=default,fg=cyan]#[fg=black,bg=cyan]  #{df_avail} #[bg=default,bg=cyan]#[fg=yellow,bg=default] #{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" #[fg=white,bg=black]#[bg=white,fg=black]  %H:%M:%S " set -g status-right "#[fg=gray,bg=default] ⇄ #{net_speed} #[bg=default,fg=cyan]#[fg=black,bg=cyan]  #{df_avail} #[bg=default,bg=cyan]#[fg=yellow,bg=default] #{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" #[fg=white,bg=black]#[bg=white,fg=black] ↑ #{uptime}  %H:%M:%S "
# set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#(whoami)' # set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#(whoami)'
# set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=colour240,bg=default]' # set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=colour240,bg=default]'
# set -g status-left "#[bg=colour240]aaaaa #[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=black,bg=colour240]" # set -g status-left "#[bg=colour240]aaaaa #[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=black,bg=colour240]"