diff --git a/sh/tmux.sh b/sh/tmux.sh index 9c3accd..ea54a59 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -85,7 +85,7 @@ set-option -g pane-border-style fg=blue set-option -g status 2 # background color -set-option -g status-bg '#0D0D0D' +set-option -g status-bg '#080808' # foreground color set-option -g status-fg white @@ -93,82 +93,99 @@ set-option -g status-fg white # line 1 set-option -g status-format[0] '\ #{W:\ -#[bg=##202020]\ -#{?window_zoomed_flag,#[fg=magenta][, }\ -#[bg=##303030]\ #{?window_active,#[fg=green],\ #{?window_activity_flag,#[fg=red],#[fg=yellow]}}\ -#{window_name}\ -#[bg=##202020]\ -#{?window_zoomed_flag,#[fg=magenta]], }\ +#[bg=##181818]#{?window_zoomed_flag,#[fg=magenta][, }\ +#[bg=##282828]#{window_name}\ +#[bg=##181818]#{?window_zoomed_flag,#[fg=magenta]], }\ +#[fg=default]\ #[bg=default] \ }\ #[align=right]\ -#[bg=##202020] #[bg=##303030]\ -#[fg=yellow]%H:%M:%S\ -#[bg=##202020]\ -#{?client_prefix,#[fg=green]p, }\ +#[fg=yellow]\ +#[bg=##181818] \ +#[bg=##282828]%H:%M:%S\ +#[bg=##181818]#{?client_prefix,#[fg=green]p, }\ ' # line 2 set-option -g status-format[1] '\ #{S:\ -#[bg=##202020] #[bg=##303030]\ -#{?session_many_attached,#[fg=red],\ -#{?session_attached,#[fg=magenta],#[fg=yellow]}}\ -#{session_name}\ -#[bg=##202020] \ +#{?session_many_attached,#[fg=magenta],\ +#{?session_attached,#[fg=red],#[fg=yellow]}}\ +#[bg=##181818] \ +#[bg=##282828]#{session_name}\ +#[bg=##181818] \ +#[fg=default]\ #[bg=default] \ }\ -#[fg=yellow]→ #[fg=green]#{session_name} \ +#[fg=yellow]→\ +#[fg=default] \ +#[fg=green]\ +#[bg=##181818] \ +#[bg=##282828]#{session_name}\ +#[bg=##181818] \ #[align=right]\ -#[bg=##202020] #[bg=##303030]\ -#[fg=yellow]%Y-%m-%d\ -#[bg=##202020] \ +#[fg=yellow]\ +#[bg=##181818] \ +#[bg=##282828]%Y-%m-%d\ +#[bg=##181818] \ ' # line 3 set-option -g status-format[2] '\ -#[fg=yellow] \ -#(lsof -U | awk \"/^tmux:.*\\(LISTEN\\)$/ {print \\\$9}\" \ -| xargs -n \"1\" basename | sed \"s/^/ /;s/\$/ /\" | xargs echo) \ -→ #[fg=green]\ -#(basename \"\${TMUX}\" | cut --delimiter \",\" --fields \"1\") \ +#[fg=yellow]\ +#(lsof -U \ +| awk \"/^tmux:.*\\(LISTEN\\)$/ {print \\\$9}\" \ +| xargs -n \"1\" basename \ +| sed \"s/^/#[fg=yellow]#[bg=##181818] #[bg=##282828]/\ +;s/\$/#[bg=##181818] #[fg=default]#[bg=default] /\" \ +| xargs echo \ +)\ +#[fg=default] \ +#[fg=yellow]→\ +#[fg=default] \ +#[fg=green]\ +#[bg=##181818] \ +#[bg=##282828]#(basename \"\${TMUX}\" \ +| cut --delimiter \",\" --fields \"1\")\ +#[bg=##181818] \ #[align=right]\ -#[bg=##202020] #[bg=##303030]\ -#[fg=yellow]#{host}\ -#[bg=##202020] \ +#[fg=yellow]\ +#[bg=##181818] \ +#[bg=##282828]#{host}\ +#[bg=##181818] \ ' # line 4 set-option -g status-format[3] '\ #{P:\ -#[bg=##202020] #[bg=##303030]\ +#[bg=##181818] #[bg=##282828]\ #{?pane_active,#[fg=green],#[fg=yellow]}\ #{pane_current_command}\ -#[bg=##202020] \ +#[bg=##181818] \ #[bg=default] \ }\ #[align=right]\ -#[bg=##202020] #[bg=##303030]\ +#[bg=##181818] #[bg=##282828]\ #{?uid,#[fg=green],#[fg=red]}\ #{user}\ -#[bg=##202020] \ +#[bg=##181818] \ ' # line 5 set-option -g status-format[4] '\ #{P:\ -#[bg=##202020] #[bg=##303030]\ +#[bg=##181818] #[bg=##282828]\ #{?pane_active,#[fg=green],#[fg=yellow]}\ #{pane_width}×#{pane_height}\ -#[bg=##202020] \ +#[bg=##181818] \ #[bg=default] \ }\ #[align=right]\ -#[bg=##202020] #[bg=##303030]\ +#[bg=##181818] #[bg=##282828]\ #[fg=green]#{window_width}×#{window_height}\ -#[bg=##202020] \ +#[bg=##181818] \ ' # refresh period