From 71f9710d82af982933238c44b671c2a8d8ef1902 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 13 Dec 2020 00:54:39 +0100 Subject: [PATCH] tmux: more status line tweaking --- roles/tmux/files/tmux-colors.conf | 23 ++++++++++++++--------- roles/tmux/files/tmux.conf | 1 - 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/roles/tmux/files/tmux-colors.conf b/roles/tmux/files/tmux-colors.conf index 531f1d2..753f8db 100644 --- a/roles/tmux/files/tmux-colors.conf +++ b/roles/tmux/files/tmux-colors.conf @@ -1,6 +1,6 @@ set -g status-left-length 32 set -g status-right-length 32 -set -g status-justify centre +set -g status-justify left # Color definitions # SOLARIZED TMUX @@ -23,17 +23,22 @@ set -g status-justify centre # Green colour2 set -g status-left "\ -#[fg=colour3]#{session_name} #{?client_prefix,#[fg=colour1],#[fg=colour10]}> \ -#[fg=colour2]#{window_index} #{window_name} #{?client_prefix,#[fg=colour1],#[fg=colour10]}> \ -#[fg=colour6]#{pane_index} #{pane_current_command} #{?client_prefix,#[fg=colour1],#[fg=colour10]} " +#[fg=colour3]#{session_name} \ +#{?client_prefix,#[fg=colour1],#[fg=colour10]}> \ +#[fg=colour2]#{window_index}.#{pane_index} \ +#{?client_prefix,#[fg=colour1],#[fg=colour10]}> \ +#[fg=colour6]#{pane_id}#{?pane_marked, #[fg=colour9]M,} \ +#{?client_prefix,#[fg=colour1]>>>,#[fg=colour10]> } " set -g status-right "\ -#[fg=colour6]C #{client_pid} #{?client_prefix,#[fg=colour1],#[fg=colour10]}< \ -#[fg=colour2]S #{pid} #{?client_prefix,#[fg=colour1],#[fg=colour10]}< \ -#[fg=colour3]%b %d %H:%M " +#[fg=colour6]#{pid} \ +#{?client_prefix,#[fg=colour1],#[fg=colour10]}< \ +#[fg=colour2]#{host_short} \ +#{?client_prefix,#[fg=colour1],#[fg=colour10]}< \ +#[fg=colour3]%b %d %H:%M" -setw -g window-status-current-format " #{?client_prefix,#[fg=colour1],}#{window_index}:#{window_name}#{window_flags} " -setw -g window-status-format " #{window_index}:#{window_name}#{window_flags} " +setw -g window-status-current-format "#{window_index}:#{window_name}#{window_flags} " +setw -g window-status-format "#{window_index}:#{window_name}#{window_flags} " %if #{==:#{BACKGROUND},dark} set -g status-style bg=colour0 # ... on Base02 diff --git a/roles/tmux/files/tmux.conf b/roles/tmux/files/tmux.conf index 0d21333..86193a6 100644 --- a/roles/tmux/files/tmux.conf +++ b/roles/tmux/files/tmux.conf @@ -7,7 +7,6 @@ set -g prefix C-Space # Open new windows/panes with the path in current pane bind c new-window -c '#{pane_current_path}' bind | split-window -h -c '#{pane_current_path}' -bind < split-window -h -c '#{pane_current_path}' bind - split-window -v -c '#{pane_current_path}' bind x kill-pane