From c1d904f521393fd1056a79960b6f5540155a8216 Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Fri, 22 May 2026 16:05:48 +0200 Subject: tmux: update config, add select mode highlight; tidy up --- tmux/tmux.conf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tmux') diff --git a/tmux/tmux.conf b/tmux/tmux.conf index cbe9288..861d9bf 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -3,6 +3,7 @@ unbind r bind r source-file ~/.config/tmux/tmux.conf set -g mouse on +# start tabs with 1; default is 0 set -g base-index 1 # allows to use vim bindings in scroll mode - key [ @@ -21,18 +22,24 @@ bind-key l select-pane -R # needed for autoread to work in neovim set-option -g focus-events on -# set-option -g cursor-style blinking-bar -# highlight current window in status bar -set-window-option -g window-status-current-style 'bg=brightwhite' -set-window-option -g window-status-current-format ' #I:#W ' +# no spacew between tabs +set-window-option -g window-status-separator '' +# paints the tab yellow when in select/scroll mode +set-window-option -g window-status-format '#{?pane_in_mode,#[bg=brightyellow],} #I:#W #[default]' +# paints selected tab white (unless in scroll mode) +set-window-option -g window-status-current-format '#[bg=brightwhite]#{?pane_in_mode,#[bg=brightyellow],} #I:#W #[default]' # open pane splits and windows at the same path as current pane bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind "c" new-window -c "#{pane_current_path}" +# default but with no space on the right +set-window-option -g status-left '[#S]' +# time and battery status set-window-option -g status-right '#[bg=brightwhite] %H:%M #[default]#($HOME/.config/tmux/battery.sh)' +# update each second set-window-option -g status-interval 1 # increase scrollback size to 50K lines -- cgit v1.3.1