From ae7bd3ed7752ae3cdd447ebc8b69f4455ced87ac Mon Sep 17 00:00:00 2001 From: Alex Lewis Date: Wed, 3 Jan 2024 15:54:47 +0000 Subject: [PATCH] feat: Configure pane (active) border styles --- README.md | 11 +++++++++++ catppuccin.tmux | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 75e0639..2d7c34c 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,17 @@ set -g @catppuccin_window_format_directory_text "#{b:pane_current_path}" ``` Use this to overide the way the directory is displayed. +### Pane + +#### Set the pane border style: + +set -g @catppuccin_pane_border_style "fg=blue" # Use a value compatible with the standard tmux 'pane-border-style' + +#### Set the pane active border style: + +set -g @catppuccin_pane_active_border_style "fg=red" # Use a value compatible with the standard tmux 'pane-border-active-style' + + ### Status #### Set the status module left separator: diff --git a/catppuccin.tmux b/catppuccin.tmux index 11d4030..7244779 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -284,8 +284,10 @@ main() { set message-command-style "fg=${thm_cyan},bg=${thm_gray},align=centre" # panes - set pane-border-style "fg=${thm_gray}" - set pane-active-border-style "fg=${thm_blue}" + local pane_border_style=$(get_tmux_option "@catppuccin_pane_border_style" "fg=${thm_gray}") + local pane_active_border_style=$(get_tmux_option "@catppuccin_pane_active_border_style" "fg=${thm_blue}") + set pane-border-style "${pane_border_style}" + set pane-active-border-style "${pane_active_border_style}" # windows setw window-status-activity-style "fg=${thm_fg},bg=${thm_bg},none"