diff --git a/sh/tmux.sh b/sh/tmux.sh index 12f5820..663776f 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -71,7 +71,7 @@ rwx_tmux_status() { ;; *) ;; esac - tmux set-option -g status \"\${current}\" + tmux set-option status \"\${current}\" } rwx_tmux_uptime() { local since=\"\$(uptime --since)\" @@ -134,16 +134,12 @@ 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_name} (#{window_index}∕#{session_windows})\ + → \ +#{pane_current_command} (#{pane_index}∕#{window_panes})\ ' # ╭────────┬──────╮ @@ -224,6 +220,7 @@ set-option -g status-format[2] '\ #[bg=default] \ \ #[align=right]\ +#(sh -c \". ${script}; rwx_tmux_uptime\")\ ' # line 4 @@ -238,7 +235,10 @@ set-option -g status-format[3] '\ } \ \ #[align=right]\ -#(sh -c \". ${script}; rwx_tmux_uptime\")\ +#[fg=green]\ +#[bg=##181818] \ +#[bg=##282828]#{session_name}\ +#[bg=##181818] \ ' # line 5 @@ -252,6 +252,14 @@ set-option -g status-format[4] '\ #[bg=default] \ } \ \ +#[align=centre]\ +#[fg=green]\ +#[bg=##181818] \ +#[bg=##282828]#{window_width}×#{window_height}\ +#[bg=##181818] \ +#[fg=default]\ +#[bg=default] \ +\ #[align=right]\ #{?uid,#[fg=green],#[fg=red]}\ #[bg=##181818] \