Split tmux theme configuration

This commit is contained in:
Sonny Bakker 2025-04-01 21:20:11 +02:00
parent 165dd1d139
commit 2dfacaa0a6
3 changed files with 28 additions and 9 deletions

12
tmux/dark.conf Normal file
View file

@ -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

12
tmux/light.conf Normal file
View file

@ -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

33
tmux/tmux.conf Normal file
View file

@ -0,0 +1,33 @@
# use vim copy/paste keybindings
set-option -g mode-keys vi
# vim style pane switching
bind h select-pane -L
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
# see https://github.com/neovim/neovim/issues/2035
set-option -sg escape-time 10 # in milliseconds
# scrollback history
set-option -g history-limit 10000
# status bar design
set-option -g status-position top
set-option -g status-left ''
set-option -g status-right ' [#{session_name}] #{host_short} '
# current status
set-option -g window-status-current-format ' #{window_index} #{window_name} '
# background status
set-option -g window-status-format ' #{window_index} #{window_name} '
source-file ~/.config/tmux/light.conf