feat: Configure pane (active) border styles

This commit is contained in:
Alex Lewis 2024-01-03 15:54:47 +00:00
parent 47e33044b4
commit ae7bd3ed77
2 changed files with 15 additions and 2 deletions

View file

@ -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:

View file

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