From 165dd1d139193e080dcada19da2d60cfa0052fe2 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sun, 30 Mar 2025 22:27:40 +0200 Subject: [PATCH] Update tmux styling --- .tmux.conf | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 4a89a3f..db13f81 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,11 +1,5 @@ # use vim copy/paste keybindings -setw -g mode-keys vi - -set -ga terminal-overrides ",wezterm:Tc" -set -g default-shell /bin/bash - -# see https://github.com/neovim/neovim/issues/2035 -set -sg escape-time 10 # in milliseconds +set-option -g mode-keys vi # vim style pane switching bind h select-pane -L @@ -13,24 +7,32 @@ bind j select-pane -D bind k select-pane -U bind l select-pane -R -# status bar design -set -g status-position top -set -g status-left-length 60 -set -g status-style fg=#000000,bg=#eff0f1 -set -g status-right ' #[fg=#fffffff,bg=#3daee9] #(hostname) #[fg=#ffffff,bg=#3daee9] %d/%m #[fg=#ffffff,bg=#3daee9] %H:%M:%S ' +set-option -ga terminal-overrides ",wezterm:Tc" +set-option -g default-shell /bin/bash -# current session name -set-window-option -g status-left '#[fg=#ffffff,bg=#3daee9] #S ' - -# current window -set -g window-status-current-style fg=#ffffff,bg=#3daee9 -set -g window-status-current-format ' #I#[fg=#ffffff] #[fg=#fffff]#W ' - -# background windows -set -g window-status-style fg=#000000,bg=#eff0f1 -set -g window-status-format ' #I#[fg=#000000] #[fg=#000000]#W ' +# see https://github.com/neovim/neovim/issues/2035 +set-option -sg escape-time 10 # in milliseconds # scrollback history -set -g history-limit 10000 +set-option -g history-limit 10000 -set -g mouse on +# status bar design +set-option -g status-position top + +# TODO: move these to a theme file +set-option -g status-style fg=#000000,bg=#eff0f1 + +set-option -g status-left '' +set-option -g status-right ' [#{session_name}] #{host_short} ' + +# current status +set-option -g window-status-current-style bg=#dddfe1 +set-option -g window-status-current-format ' #{window_index} #{window_name} ' + +# background status +set-option -g window-status-style bg=#eff0f1 +set-option -g window-status-format ' #{window_index} #{window_name} ' + +# window styling +# set-option -g window-style 'fg=colour247,bg=colour236' +# set-option -g window-active-style 'fg=default,bg=colour234'