From 92f433580200b479f0c17b98134fc6d5bb7684a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 11 Aug 2025 20:11:02 +0200 Subject: [PATCH] refactor(tmux): move theming section to a new file Also added some new cool additions to the bar that pair really well with the bar of nvim and yazi --- .config/tmux/conf/plugins.conf | 30 ------------------------------ .config/tmux/conf/theme.conf | 33 +++++++++++++++++++++++++++++++++ .config/tmux/tmux.conf | 1 + 3 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 .config/tmux/conf/theme.conf diff --git a/.config/tmux/conf/plugins.conf b/.config/tmux/conf/plugins.conf index 497de910..130ccf90 100644 --- a/.config/tmux/conf/plugins.conf +++ b/.config/tmux/conf/plugins.conf @@ -1,39 +1,9 @@ # Plugins Declaration set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'catppuccin/tmux' set -g @plugin 'Morantron/tmux-fingers' # Plugin Options -## Catppuccin -## Config from https://github.com/catppuccin/tmux/discussions/317#discussioncomment-11064512 -### Global Options -set -g @catppuccin_flavor 'macchiato' -set -g @catppuccin_status_background 'none' - -### Left Status -set -g status-left-length 100 -set -g status-left "" -set -ga status-left "#{?client_prefix,#{#[bg=#{@thm_red},fg=#{@thm_mantle},bold]  #S },#{#[bg=#{@thm_lavender},fg=#{@thm_bg}]  #S }}" - -# Windows Style -set -g @catppuccin_window_status_style "basic" -set -g automatic-rename on -set -g status-justify 'absolute-centre' -set -g @catppuccin_window_current_text_color "#{@thm_surface_1}" -set -g @catppuccin_window_current_number_color "#{@thm_lavender}" -set -g @catppuccin_window_number_color "#{@thm_overlay_2}" -set -g @catppuccin_window_flags_icon_last "" # - -set -g @catppuccin_window_flags "icon" -set -g @catppuccin_window_flags_icon_current "" # * -set -g @catppuccin_window_text " #W" -set -g @catppuccin_window_current_text " #W" - -### Right Status -set -g status-right-length 100 -set -g status-right "" -set -ga status-right "#[bg=#{@thm_lavender},fg=#{@thm_bg}] %H:%M  " - ## tmux-fingers bind -n M-f run -b "#{@fingers-cli} start #{pane_id}" bind u run -b "#{@fingers-cli} start #{pane_id} --patterns url" diff --git a/.config/tmux/conf/theme.conf b/.config/tmux/conf/theme.conf new file mode 100644 index 00000000..59481d56 --- /dev/null +++ b/.config/tmux/conf/theme.conf @@ -0,0 +1,33 @@ +set -g @plugin 'catppuccin/tmux' + +# Global Options +set -g @catppuccin_flavor 'macchiato' +set -g @catppuccin_status_background 'none' + +# Left Status +set -g status-left-length 100 +set -g status-left "" +set -ga status-left "#{?client_prefix,#{#[bg=#{@thm_red},fg=#{@thm_mantle},bold]  #S },#{#[bg=#{@thm_lavender},fg=#{@thm_bg}]  #S }}" +set -ga status-left "#[bg=#{@thm_base},fg=#{@thm_lavender}]" + +# Windows +set -g @catppuccin_window_status_style "basic" +set -g automatic-rename on +set -g status-justify 'absolute-centre' +set -g @catppuccin_window_current_text_color "#{@thm_surface_0}" +set -g @catppuccin_window_current_number_color "#{@thm_lavender}" +set -g @catppuccin_window_number_color "#{@thm_overlay_2}" +set -g @catppuccin_window_flags_icon_last "" # - +set -g @catppuccin_window_flags "icon" +set -g @catppuccin_window_flags_icon_current "" # * +set -g @catppuccin_window_text " #W" +set -g @catppuccin_window_current_text " #W" + +### Right Status +set -g status-right-length 100 +set -g status-right "" +set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_surface_0}]" +set -ga status-right "#[bg=#{@thm_surface_0},fg=#{@thm_lavender}] 󰭦 %Y-%m-%d " +set -ga status-right "#[bg=#{@thm_surface_0},fg=#{@thm_lavender}]" +set -ga status-right "#[bg=#{@thm_lavender},fg=#{@thm_bg}] %H:%M  " + diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index ecf7fd4f..9233fbfc 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -2,6 +2,7 @@ source-file ~/.config/tmux/conf/plugins.conf source-file ~/.config/tmux/conf/binds.conf source-file ~/.config/tmux/conf/options.conf +source-file ~/.config/tmux/conf/theme.conf # Bootstrap TPM if "test ! -d ~/.config/tmux/plugins/tpm" \