Skip to content

Commit

Permalink
feat(window-format): send window type param to builder
Browse files Browse the repository at this point in the history
  • Loading branch information
mklbravo committed Apr 26, 2024
1 parent 1a63cf1 commit dac1a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion window/window_current_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ show_window_current_format() {
background=$(get_tmux_option "@catppuccin_window_current_background" "$thm_bg")
text="$(get_tmux_option "@catppuccin_window_current_text" "#{b:pane_current_path}")" # use #W for application instead of directory
fill="$(get_tmux_option "@catppuccin_window_current_fill" "number")" # number, all, none
type="current"

current_window_format=$(build_window_format "$number" "$color" "$background" "$text" "$fill")
current_window_format=$(build_window_format "$number" "$color" "$background" "$text" "$fill" "$type")

echo "$current_window_format"
}
3 changes: 2 additions & 1 deletion window/window_default_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ show_window_default_format() {
background=$(get_tmux_option "@catppuccin_window_default_background" "$thm_gray")
text="$(get_tmux_option "@catppuccin_window_default_text" "#{b:pane_current_path}")" # use #W for application instead of directory
fill="$(get_tmux_option "@catppuccin_window_default_fill" "number")" # number, all, none
type="default"

default_window_format=$(build_window_format "$number" "$color" "$background" "$text" "$fill")
default_window_format=$(build_window_format "$number" "$color" "$background" "$text" "$fill" "$middle_seprator" "$type")

echo "$default_window_format"
}

0 comments on commit dac1a87

Please sign in to comment.