catppuccin / tmux

💽 Soothing pastel theme for Tmux
MIT License
1.94k stars 614 forks source link

Wrong bg/fg on custom separators #403

Open vdbe opened 1 month ago

vdbe commented 1 month ago

I am not requesting help with my configuration and believe something is genuinely broken.

Is there an existing issue outlining your problem?

Describe your problem.

The separators bg (foreground of the separator) is not set correctly.

This was reported in #396 but closed because it's a support question?

In 2.0 the way the separators work was change if you want █ as a separator you need to use (the inverse).

I don't know if this is intended or a bug either way the color's are not set correctly on the separator.

Expected behavior:

Deeper look:

$ tmux display-message -p "#{E:window-status-current-format}"
#[fg=#11111b,bg=#9399b2] 2#[fg=#cdd6f4,bg=#313244] default

The left separator #[fg=#11111b,bg=#9399b2] foreground should be the color of the status bar background bg=#181825.

$ tmux display-message -p "#{E:status-style}"
bg=#181825,fg=#cdd6f4

The middle and right separator should be styled correctly or documented that it does not set fg/bg like every other separator.

The that the status bar color is is not directly known in the users config since it's set by this if else block https://github.com/catppuccin/tmux/blob/c3fab98ab4248a2a78c8193ad48f0991b7bfa1e3/catppuccin_tmux.conf#L3-L19 making it difficult to set this correctly in the users config.

If the middle and right separators are not styled correctly these can just be removed since it's provides no value over adding them to _text. into something @catppuccin_window_number and @catppuccin_window_text bringing 4 options to two without losing functionality.

Paste your configuration.

set -g default-terminal screen-256color
set -g @test_config "tmux"
set -g mouse on

set -g status-right-length 100
set -g status-left ""

set -g @catppuccin_window_status_style "custom"

set -g @catppuccin_window_flag "icon"

set -g @catppuccin_window_text " default"
set -g @catppuccin_window_current_text " current"

# set -g @catppuccin_window_number_position "right"

# Pre 2.0 separators
# set -g @catppuccin_window_left_separator "█"
# set -g @catppuccin_window_middle_separator "█"
# set -g @catppuccin_window_right_separator ""

set -g @catppuccin_window_left_separator " "
set -g @catppuccin_window_middle_separator ""
set -g @catppuccin_window_right_separator ""

run "$CATPPUCCIN_TMUX_PLUGIN"

Attach screenshots.

Current: image image Expected (old colors): image

What tmux version are you seeing the issue on?

tmux 3.5a

Any additional comments?

No response

kjnsn commented 4 weeks ago

Potentially a solution for #409 could fix this at the same time

xdannyrobertsx commented 10 hours ago

FWIW, i'm running into this but only on my linux machine running sway. My other machines (macOs Sonoma and Catalina), which use the same dotfiles, display the separators just fine

kjnsn commented 8 hours ago

FWIW, i'm running into this but only on my linux machine running sway. My other machines (macOs Sonoma and Catalina), which use the same dotfiles, display the separators just fine

What terminal are you using? The window manager is irrelevant