diff --git a/README.md b/README.md index d5114de..18ca161 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,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 @@ -159,6 +168,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 diff --git a/window/window_current_format.sh b/window/window_current_format.sh index 88e9053..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="$thm_orange" - local background="$thm_bg" + local color=$(get_tmux_option "@catppuccin_window_current_color" "$thm_orange") + 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 diff --git a/window/window_default_format.sh b/window/window_default_format.sh index 1f5f016..5afcfe6 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 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 - + local default_window_format=$( build_window_format "$number" "$color" "$background" "$text" "$fill" ) echo "$default_window_format"