From 51b85e07a981d531ae18ea79dba2f665be2adee2 Mon Sep 17 00:00:00 2001 From: YongJieYongJie Date: Wed, 7 Feb 2024 00:22:10 -0800 Subject: [PATCH] feat(pane): different border color if pane_synchronized --- catppuccin.tmux | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index da1e5f4..bae70b3 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -336,7 +336,10 @@ main() { local pane_status_enable=$(get_tmux_option "@catppuccin_pane_status_enabled" "no") # yes local pane_border_status=$(get_tmux_option "@catppuccin_pane_border_status" "off") # bottom 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_orange}") + local pane_active_border_style=$(\ + get_tmux_option "@catppuccin_pane_active_border_style" \ + "#{?pane_in_mode,fg=${thm_yellow},#{?pane_synchronized,fg=${thm_magenta},fg=${thm_orange}}}" + ) local pane_left_separator=$(get_tmux_option "@catppuccin_pane_left_separator" "█") local pane_middle_separator=$(get_tmux_option "@catppuccin_pane_middle_separator" "█") local pane_right_separator=$(get_tmux_option "@catppuccin_pane_right_separator" "█")