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
This commit is contained in:
Sergio Laín 2025-08-11 20:11:02 +02:00
parent 4dd967618a
commit 92f4335802
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438
3 changed files with 34 additions and 30 deletions

View file

@ -1,39 +1,9 @@
# Plugins Declaration # Plugins Declaration
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'Morantron/tmux-fingers' set -g @plugin 'Morantron/tmux-fingers'
# Plugin Options # 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 ## tmux-fingers
bind -n M-f run -b "#{@fingers-cli} start #{pane_id}" bind -n M-f run -b "#{@fingers-cli} start #{pane_id}"
bind u run -b "#{@fingers-cli} start #{pane_id} --patterns url" bind u run -b "#{@fingers-cli} start #{pane_id} --patterns url"

View file

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

View file

@ -2,6 +2,7 @@
source-file ~/.config/tmux/conf/plugins.conf source-file ~/.config/tmux/conf/plugins.conf
source-file ~/.config/tmux/conf/binds.conf source-file ~/.config/tmux/conf/binds.conf
source-file ~/.config/tmux/conf/options.conf source-file ~/.config/tmux/conf/options.conf
source-file ~/.config/tmux/conf/theme.conf
# Bootstrap TPM # Bootstrap TPM
if "test ! -d ~/.config/tmux/plugins/tpm" \ if "test ! -d ~/.config/tmux/plugins/tpm" \