diff --git a/sh/tmux.sh b/sh/tmux.sh index 79ee315..2d0b951 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -54,9 +54,6 @@ set-option -g set-titles-string '\ #{pane_index}∕#{window_panes} #{pane_current_command}\ ' -# status lines -set-option -g status 3 - # ╭────────┬──────╮ # │ option │ pane │ # ╰────────┴──────╯ @@ -78,6 +75,9 @@ set-option -g pane-border-style bg=black,fg=gray # │ option │ status │ # ╰────────┴────────╯ +# status lines +set-option -g status 4 + # background color set-option -g status-bg black @@ -87,6 +87,8 @@ set-option -g status-fg gray # line 1 set-option -g status-format[0] '\ #[fg=cyan]#{pane_current_path}\ +#[align=right] \ +#[fg=default]#{session_name}\ ' # line 2 @@ -99,8 +101,6 @@ set-option -g status-format[1] '\ #{?window_flags, #{window_flags},}\ \ }\ -#[align=centre]\ -#[fg=default]#{session_name}\ #[align=right] \ #[fg=yellow]%H:%M:%S\ ' @@ -109,15 +109,26 @@ set-option -g status-format[1] '\ set-option -g status-format[2] '\ #{P:\ #{?pane_active,#[fg=green],#[fg=default]}\ +#{pane_index}\ + \ +#{pane_current_command}\ + \ +}\ +#[align=right] \ +#[fg=yellow]%Y-%m-%d\ +' + +# line 4 +set-option -g status-format[3] '\ +#{P:\ +#{?pane_active,#[fg=green],#[fg=default]}\ #{pane_index}\ \ #[fg=blue]#{pane_width}×#{pane_height}\ \ }\ -#[align=centre] \ -#[fg=blue]#{window_width}×#{window_height}\ #[align=right] \ -#[fg=yellow]%Y-%m-%d\ +#[fg=blue]#{window_width}×#{window_height}\ ' # refresh period