diff --git a/sh/tmux.sh b/sh/tmux.sh index 2b7d9bb..12f5820 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -134,16 +134,16 @@ set-option -g set-titles on # set title to working directory set-option -g set-titles-string '\ #(sh -c \". ${script}; rwx_tmux_server\")\ - / \ + / \ #{session_name}\ - / \ + / \ #{window_name}\ - / \ + / \ #{pane_current_command}\ - - \ -#{window_width}×#{window_height}\ - / \ -#{pane_width}×#{pane_height}\ + - \ +#{window_width} × #{window_height}\ + / \ +#{pane_width} × #{pane_height}\ ' # ╭────────┬──────╮ @@ -238,10 +238,21 @@ set-option -g status-format[3] '\ } \ \ #[align=right]\ +#(sh -c \". ${script}; rwx_tmux_uptime\")\ ' # line 5 set-option -g status-format[4] '\ +#{P:\ +#{?pane_active,#[fg=green],#[fg=yellow]}\ +#[bg=##181818] \ +#[bg=##282828]#{pane_width}×#{pane_height}\ +#[bg=##181818] \ +#[fg=default]\ +#[bg=default] \ +} \ +\ +#[align=right]\ #{?uid,#[fg=green],#[fg=red]}\ #[bg=##181818] \ #[bg=##282828]#{user}\ @@ -252,11 +263,6 @@ set-option -g status-format[4] '\ #[bg=##181818] \ #[bg=##282828]#{host}\ #[bg=##181818] \ -#[fg=default]\ -#[bg=default] \ -\ -#[align=right]\ -#(sh -c \". ${script}; rwx_tmux_uptime\")\ ' # refresh period