From 9f96d553f0448f9ed4de958922477c217d659251 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 3 Oct 2023 11:14:06 +0300 Subject: [PATCH] feat(tmux): tmux config tweaks --- config/tmux/tmux.conf | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index c0fe6f6..566d921 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -88,19 +88,6 @@ set-window-option -g mode-keys vi # Set theme to tokyonight source-file ~/.dotfiles/config/tmux/tokyonight_storm.tmux -# ╭──────────────────────────────────────────────────────────╮ -# │ Plugins │ -# ╰──────────────────────────────────────────────────────────╯ - -run-shell ~/.dotfiles/config/tmux/plugins/tmux-sensible/sensible.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-continuum/continuum.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-resurrect/resurrect.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-sessionist/sessionist.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux -run-shell ~/.dotfiles/config/tmux/plugins/tmux-window-name/tmux_window_name.tmux - # ╭──────────────────────────────────────────────────────────╮ # │ Plugins related configurations │ # ╰──────────────────────────────────────────────────────────╯ @@ -126,3 +113,22 @@ set -g @continuum-boot-options 'alacritty' set -g @resurrect-strategy-nvim 'session' set -g @resurrect-dir '$HOME/.local/state/tmux/tmux-resurrect' +# Modified from tokyonight_storm to include tmux_mode_indicator +set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight} #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %I:%M %p #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] #h #{tmux_mode_indicator}" +if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { + set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight} #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %H:%M #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] #h #{tmux_mode_indicator}" +} + +# ╭──────────────────────────────────────────────────────────╮ +# │ Plugins │ +# ╰──────────────────────────────────────────────────────────╯ + +run-shell ~/.dotfiles/config/tmux/plugins/tmux-sensible/sensible.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-resurrect/resurrect.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-continuum/continuum.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-sessionist/sessionist.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-window-name/tmux_window_name.tmux +