From a5f8a7b1abbd0d95f9e84183fef70d788f8e8a37 Mon Sep 17 00:00:00 2001 From: afonso Date: Sat, 1 Jun 2024 19:56:30 +0100 Subject: [PATCH] [tmux] fix statusbar --- .config/tmux/tmux_plugins.conf | 2 +- .config/tmux/tmux_status_bar.conf | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.config/tmux/tmux_plugins.conf b/.config/tmux/tmux_plugins.conf index 7da6c6c..00bb099 100644 --- a/.config/tmux/tmux_plugins.conf +++ b/.config/tmux/tmux_plugins.conf @@ -14,7 +14,7 @@ set -g @plugin 'sainnhe/tmux-fzf' #set -g @catppuccin_window_tabs_enabled on set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' -set -g @continuum-restore 'on' +#set -g @continuum-restore 'on' set -g @continuum-save-interval '5' #set -g @continuum-boot 'on' #set -g @continuum-boot-options 'alacritty' diff --git a/.config/tmux/tmux_status_bar.conf b/.config/tmux/tmux_status_bar.conf index f912ac8..0d21a5c 100644 --- a/.config/tmux/tmux_status_bar.conf +++ b/.config/tmux/tmux_status_bar.conf @@ -5,20 +5,31 @@ set -g status-bg "#1d2021" set -g @unfocused-fg "#d4be98" set -g @focused-bg "#d4be98" set -g @focused-fg "#1d2021" + # Set status bar position set -g status-position top -# Set status bar style -set -g status-style ' #[bg=#{status-bg},fg=#{@unfocused-fg}] ' - # Set status bar justification set -g status-justify left # Set right side of the status bar -set -g status-right '#[bg=#{status-bg},fg=#{@unfocused-fg}] #S' +set -g status-right '#(cat #{socket_path}-\#{session_id}-vimbridge-R)' + +set -g status-left '[#S] ' + +# Set status bar style +set -g status-style ' #[bg=#{status-bg},fg=#{@unfocused-fg}]' # Set window status format -set -g window-status-format ' #[bg=#{status-bg},fg=#{@unfocused-fg}] #I:#W ' +set -g window-status-format ' #I:#W ' # Set window status format for the current window -set -g window-status-current-format ' #[bg=#{@focused-bg},fg=#{@focused-fg}] #I:#W ' +set -g window-status-current-format '#[bg=#{@focused-bg},fg=#{@focused-fg}] #I:#W ' + + +# AUTO RENAME WINDOW +set-option -g status-interval 1 + +set-option -g automatic-rename on + +set-option -g automatic-rename-format "#{?#{==:#{pane_current_command},zsh},#{b:pane_current_path},#{pane_current_command}}"