catppuccin / tmux

šŸ’½ Soothing pastel theme for Tmux!
MIT License
1.82k stars 562 forks source link

Tmux separator color of first split is white #136

Open FreddyFunk opened 7 months ago

FreddyFunk commented 7 months ago

This is a very odd behavior. I am running on Alacritty 0.13.1 with the catppuccin theme and tmux 3.4 on macOS. It worked fine before installing catppuccin.

Also my pomodoro timer disappeared in the tmux status bar as well.

https://github.com/catppuccin/tmux/assets/27208977/f0d3c4be-91c0-4519-908d-2738b99cc760

tmux config:

# fix tpm when tmux is installed with homebrew on macOS
set-environment -g PATH "/opt/homebrew/bin:/usr/local/bin:/bin:/usr/bin"

# List of plugins
# Install theme first and tpm last
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'olimorris/tmux-pomodoro-plus'
set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-sensible'

# shell config
set-option -g default-shell /bin/zsh
set-option -g history-limit 25000
set -g mouse on

# for neovim
set -sg escape-time 10
set-option -g focus-event on
# vi for copy mode
setw -g mode-keys vi

# term colors, these are the correct ones according to neovim checkhealth
set-option -g default-terminal "screen-256color"
set -sg terminal-overrides ",*:RGB"

# theme
set -g @catppuccin_flavour 'mocha'

# pomodoro timer
#set -g @pomodoro_toggle 'p' # conflicts with tmux default binding
set -g @pomodoro_on "#[fg=$text_red]šŸ… "
set -g @pomodoro_complete "#[fg=$text_green]šŸ… "
set -g @pomodoro_pause "#[fg=$color_yellow]šŸ… "
set -g @pomodoro_prompt_break "#[fg=$color_green]šŸ•¤ ? "
set -g @pomodoro_prompt_pomodoro "#[fg=$color_gray]šŸ•¤ ? "
set -g @pomodoro_granularity 'on'
set -g @pomodoro_interval_display "[%s/%s]"

# status bar
set -g status-right "#{pomodoro_status}"

# count the panes from 1
set -g base-index 1
setw -g pane-base-index 1

# reload configuration
bind-key -r r source-file ~/.tmux.conf

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
#macOS
run '/opt/homebrew/opt/tpm/share/tpm/tpm'
# auto install and update plugins on tmux start
run '/opt/homebrew/opt/tpm/share/tpm/bin/install_plugins'

# linux
#run '~/.tmux/plugins/tpm/tpm'

Alacritty config:

import = [
  "~/.config/alacritty/catppuccin-mocha.toml"
]

[window]
decorations="Buttonless"

[font]
normal={ family = "JetBrainsMono Nerd Font", style = "Regular" }
size=16
vdbe commented 7 months ago

No idea how/why the color is not correct for the first split can't replicate it (tried tmux 3.4 with your alacritty config, but I am on linux).

For the pomodoro timer you need to use a module

silentroach commented 7 months ago

Have the same problem in OS X + WezTerm

Screenshot 2024-03-10 at 12 53 23
vdbe commented 7 months ago

That looks correct, with just 2 panes it's always half a line:

silentroach commented 7 months ago

oh O.o ok, thanks