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