Merge pull request #106 from alewis001/pane-border-styles

feat: Configure pane (active) border styles
This commit is contained in:
Valentin Uveges 2024-01-17 19:18:25 +02:00 committed by GitHub
commit 85420ca825
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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"