dotfiles/.config/tmux/conf/plugins.conf

52 lines
2 KiB
Text

# Plugins Declaration
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'wfxr/tmux-fzf-url'
set -g @plugin 'sainnhe/tmux-fzf'
# 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_mantle},fg=#{@thm_green}]  #S }}"
set -ga status-right "#[bg=#{@thm_mantle},fg=#{@thm_overlay_0}, none]|"
set -ga status-left "#[bg=#{@thm_mantle},fg=#{@thm_lavender}]  #{=/-32/...:#{s|$USER|~|:#{b:pane_current_path}}} "
# Windows Style
set -g @catppuccin_window_status_style "basic"
set -g automatic-rename on
set -g window-status-separator '|'
set -g status-justify 'absolute-centre'
set -g @catppuccin_window_current_text_color "#{@thm_surface_1}"
set -g @catppuccin_window_current_number_color "#{@thm_mauve}"
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_mantle},fg=#{@thm_peach}]  #{user} "
set -ga status-right "#[bg=#{@thm_mantle},fg=#{@thm_overlay_0}, none]|"
set -ga status-right "#[bg=#{@thm_mantle},fg=#{@thm_blue}] 󰭦 %Y-%m-%d 󰅐 %H:%M "
## fzf-url
set -g @fzf-url-bind 'u'
## tmux-fzf
TMUX_FZF_OPTIONS="-p -w 80% -h 80% -m"
TMUX_FZF_PREVIEW=1
TMUX_FZF_LAUNCH_KEY="space"
TMUX_FZF_ORDER="session|window|pane"
bind-key "w" run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/window.sh switch"
bind-key "s" run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"
bind-key "S" run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh new"