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:
parent
4dd967618a
commit
92f4335802
3 changed files with 34 additions and 30 deletions
|
@ -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"
|
||||
|
|
33
.config/tmux/conf/theme.conf
Normal file
33
.config/tmux/conf/theme.conf
Normal 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 "
|
||||
|
|
@ -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" \
|
||||
|
|
Loading…
Add table
Reference in a new issue