From 9f25bbbf659937ff1cbcf37afb484b6ac7468a93 Mon Sep 17 00:00:00 2001 From: Zachary Taylor Date: Wed, 8 Nov 2023 13:29:56 -0600 Subject: [PATCH 1/5] allow modification of current window bg color --- window/window_current_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/window_current_format.sh b/window/window_current_format.sh index 88e9053..46e12eb 100644 --- a/window/window_current_format.sh +++ b/window/window_current_format.sh @@ -1,6 +1,6 @@ show_window_current_format() { local number="#I" - local color="$thm_orange" + local color=$(get_tmux_option "@catppuccin_window_current_color" "$thm_orange") local background="$thm_bg" local text="$(get_tmux_option "@catppuccin_window_current_text" "#{b:pane_current_path}")" # use #W for application instead of directory local fill="$(get_tmux_option "@catppuccin_window_current_fill" "number")" # number, all, none From d406e42cae9ded3e791ec4b4b1842a9dfb4a6c89 Mon Sep 17 00:00:00 2001 From: Zachary Taylor Date: Wed, 8 Nov 2023 13:40:20 -0600 Subject: [PATCH 2/5] making the default background changeable as well --- window/window_default_format.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window/window_default_format.sh b/window/window_default_format.sh index 1f5f016..aa7868a 100644 --- a/window/window_default_format.sh +++ b/window/window_default_format.sh @@ -1,10 +1,10 @@ show_window_default_format() { local number="#I" local color="$thm_blue" - local background="$thm_gray" + local background=$(get_tmux_option "@catppuccin_window_default_background" "$thm_gray") local text="$(get_tmux_option "@catppuccin_window_default_text" "#{b:pane_current_path}")" # use #W for application instead of directory local fill="$(get_tmux_option "@catppuccin_window_default_fill" "number")" # number, all, none - + local default_window_format=$( build_window_format "$number" "$color" "$background" "$text" "$fill" ) echo "$default_window_format" From fc7b6c18503da70a0fcc6dbc8291bf6c4043b65a Mon Sep 17 00:00:00 2001 From: Zachary Taylor Date: Thu, 18 Jan 2024 09:53:19 -0600 Subject: [PATCH 3/5] feat: adding default window color option --- window/window_default_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/window_default_format.sh b/window/window_default_format.sh index aa7868a..5afcfe6 100644 --- a/window/window_default_format.sh +++ b/window/window_default_format.sh @@ -1,6 +1,6 @@ show_window_default_format() { local number="#I" - local color="$thm_blue" + local color=$(get_tmux_option "@catppuccin_window_default_color" "$thm_blue") local background=$(get_tmux_option "@catppuccin_window_default_background" "$thm_gray") local text="$(get_tmux_option "@catppuccin_window_default_text" "#{b:pane_current_path}")" # use #W for application instead of directory local fill="$(get_tmux_option "@catppuccin_window_default_fill" "number")" # number, all, none From 820eb0912543c823d457292b6367219408b8ffed Mon Sep 17 00:00:00 2001 From: Zachary Taylor Date: Thu, 18 Jan 2024 09:53:56 -0600 Subject: [PATCH 4/5] feat: adding window current bg option --- window/window_current_format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/window_current_format.sh b/window/window_current_format.sh index 46e12eb..46b4a18 100644 --- a/window/window_current_format.sh +++ b/window/window_current_format.sh @@ -1,7 +1,7 @@ show_window_current_format() { local number="#I" local color=$(get_tmux_option "@catppuccin_window_current_color" "$thm_orange") - local background="$thm_bg" + local background=$(get_tmux_option "@catppuccin_window_current_background" "$thm_bg") local text="$(get_tmux_option "@catppuccin_window_current_text" "#{b:pane_current_path}")" # use #W for application instead of directory local fill="$(get_tmux_option "@catppuccin_window_current_fill" "number")" # number, all, none From 4ebafff29e1d4dde60a8af7b0b25f6cc1a37b6fa Mon Sep 17 00:00:00 2001 From: Zachary Taylor Date: Thu, 18 Jan 2024 09:56:33 -0600 Subject: [PATCH 5/5] chore: update readme for new window configs --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 75e0639..cee0732 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,15 @@ Values: - all - the entire window part will have the same color - none - the entire window part will have no color +#### Override the window default colors: +```sh +set -g @catppuccin_window_default_text "color" # text color +set -g @catppuccin_window_default_background "color" +``` + +Values: +- color - a hexadecimal color value + #### Override the window default text: ```sh set -g @catppuccin_window_default_text "#{b:pane_current_path}" # use "#W" for application instead of directory @@ -157,6 +166,15 @@ Values: - all - the entire window part will have the same color - none - the entire window part will have no color +#### Override the window current colors: +```sh +set -g @catppuccin_window_current_color "color" # text color +set -g @catppuccin_window_current_background "color" +``` + +Values: +- color - a hexadecimal color value + #### Override the window current text: ```sh set -g @catppuccin_window_current_text "#{b:pane_current_path}" # use "#W" for application instead of directory