From 2dfacaa0a61174e974f0d62dde9e82b91b2b29e3 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Tue, 1 Apr 2025 21:20:11 +0200 Subject: [PATCH] Split tmux theme configuration --- tmux/dark.conf | 12 ++++++++++++ tmux/light.conf | 12 ++++++++++++ .tmux.conf => tmux/tmux.conf | 13 ++++--------- 3 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 tmux/dark.conf create mode 100644 tmux/light.conf rename .tmux.conf => tmux/tmux.conf (70%) diff --git a/tmux/dark.conf b/tmux/dark.conf new file mode 100644 index 0000000..4100dbc --- /dev/null +++ b/tmux/dark.conf @@ -0,0 +1,12 @@ +# status bar design +set-option -g status-style fg=#ffffff,bg=#383e43 + +# current status +set-option -g window-status-current-style fg=#ffffff,bg=#4c545b + +# background status +set-option -g window-status-style fg=#ffffff,bg=#383e43 + +# window styling +set-option -g window-style fg=#ffffff,bg=#232828 +set-option -g window-active-style fg=#ffffff,bg=#292e32 diff --git a/tmux/light.conf b/tmux/light.conf new file mode 100644 index 0000000..713671b --- /dev/null +++ b/tmux/light.conf @@ -0,0 +1,12 @@ +# status bar design +set-option -g status-style fg=#000000,bg=#eff0f1 + +# current status +set-option -g window-status-current-style fg=#000000,bg=#dddfe1 + +# background status +set-option -g window-status-style fg=#000000,bg=#eff0f1 + +# window styling +set-option -g window-style fg=#000000,bg=#eff0f1 +set-option -g window-active-style fg=#000000,bg=#ffffff diff --git a/.tmux.conf b/tmux/tmux.conf similarity index 70% rename from .tmux.conf rename to tmux/tmux.conf index db13f81..f648ce0 100644 --- a/.tmux.conf +++ b/tmux/tmux.conf @@ -7,6 +7,9 @@ bind j select-pane -D bind k select-pane -U bind l select-pane -R +# toggle tmux theme +bind T run-shell ~/.local/bin/tmux-toggle.sh + set-option -ga terminal-overrides ",wezterm:Tc" set-option -g default-shell /bin/bash @@ -18,21 +21,13 @@ set-option -g history-limit 10000 # 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' +source-file ~/.config/tmux/light.conf