From 8d6f4190fd197ba121ea6bb25fa0f11dd735b82c Mon Sep 17 00:00:00 2001 From: afranco Date: Mon, 16 Jun 2025 09:22:55 +0100 Subject: [PATCH] feat(tmux): cleanup config and make it portable across terminal themes --- .config/tmux/tmux.conf | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 8792039..8b26814 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -2,9 +2,10 @@ # General set -g default-terminal "tmux-256color" -set -gq allow-passthrough on -set -g visual-activity off +set -ag terminal-overrides ",$TERM:Tc" set -sa terminal-features ",*:RGB" +set -g allow-passthrough on +set -g visual-activity off set -sg escape-time 0 set -g mouse on set -g base-index 1 @@ -20,17 +21,11 @@ set -g status-right "" set -g status-left-length 20 set -g status-position top set -g status-justify left -set -g status-style 'bg=#181926 fg=#cad3f5' set -g status-left '[#S] ' -set -g status-style ' #[bg=#{status-bg},fg=#{@unfocused-fg}]' +set -g status-style 'bg=default,fg=default' set -g window-status-format ' #I:#W ' -set -g window-status-current-format '#[bg=#{@focused-bg},fg=#{@focused-fg}] #I:#W ' +set -g window-status-current-format '#[bg=default,fg=default,reverse] #I:#W ' -# Theme -set -g status-bg "#1d2021" -set -g @unfocused-fg "#ebdbb2" -set -g @focused-bg "#ebdbb2" -set -g @focused-fg "#1d2021" # Plugins set -g @plugin 'tmux-plugins/tpm'