diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2026-05-22 16:05:48 +0200 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2026-05-22 16:05:48 +0200 |
| commit | c1d904f521393fd1056a79960b6f5540155a8216 (patch) | |
| tree | 07d1410e25cea90244ce9f7d48de646f0dda8a73 /tmux | |
| parent | dc5604a3d34d8f2799bb0f5f4721df90e465474c (diff) | |
tmux: update config, add select mode highlight; tidy up
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/tmux.conf | 15 |
1 files changed, 11 insertions, 4 deletions
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 |
