Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use current window separators for the current window format #443

Merged
merged 3 commits into from
Dec 8, 2024

Conversation

SfinxNT
Copy link
Contributor

@SfinxNT SfinxNT commented Dec 7, 2024

To enable the use of @catppuccin_window_status_style "custom", we need to use the existing parameter @catppuccin_window_current_right_separator. This is necessary to ensure the correct separator is used in window-status-current-format.

Additionally, a popup-style change is required to maintain consistency with transparent background setups.

@SfinxNT
Copy link
Contributor Author

SfinxNT commented Dec 7, 2024

Same config used

set -g @catppuccin_flavor 'frappe'
set -g @catppuccin_status_background "none"
set -g @catppuccin_window_status_style "custom"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_current_number_color "#{@thm_peach}"
set -g @catppuccin_window_current_text_color "#{E:@catppuccin_window_text_color}"

set -g @catppuccin_window_right_separator " #[default]#[fg=#{@catppuccin_window_number_color}]\uE0BC#[none]"
set -g @catppuccin_window_current_right_separator " #[default]#[fg=#{@catppuccin_window_current_number_color}]\uE0BC#[none]"
set -g @catppuccin_window_left_separator "#[default]#[fg=#{@catppuccin_window_text_color}]\uE0BA\u2588#[none]"
set -g @catppuccin_window_middle_separator " #[fg=#{@catppuccin_window_number_color},bg=#{@catppuccin_window_text_color}]\uE0BA#[none]"
set -g @catppuccin_window_current_middle_separator \
      " #[fg=#{@catppuccin_window_current_number_color},bg=#{@catppuccin_window_current_text_color}]\uE0BA#[none]"

set -g @catppuccin_window_text "#W"
set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag, \uF05B,}"
set -g status-right-length 100
set -g status-left-length 100
set -g status-left ""
set -g status-right "#{E:@catppuccin_status_application}"
set -ag status-right "#{E:@catppuccin_status_session}"
set -ag status-right "#{E:@catppuccin_status_date_time}"

Before fix:
Screenshot_20241207_182514
After fix:
Screenshot_20241207_182423

@kjnsn kjnsn changed the title Fix current window format Use current window separators for the current window format Dec 8, 2024
@kjnsn
Copy link
Collaborator

kjnsn commented Dec 8, 2024

Thanks so much! I've removed the popup changes from this PR, but they are welcome in another PR. I like to keep PRs focused to one change at a time.

@kjnsn kjnsn merged commit 2a6c45b into catppuccin:main Dec 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants