Skip to content

Status bar background stuck when switching ligh/dark theme #553

Description

@cug

Hi all,

I'm having some trouble with the current catppuccin themes for tmux .. first a little bit of history:

I was on an old version of catppuccin (probably a year or even slightly older) and the described was working just fine. I've recently updated (due to setting up a new machine) and ran into trouble with my tmux theme config not working anymore and did a full update.

What I'm doing;

I have a few items like this:
set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_blue}] 󰭦 %Y-%m-%d 󰅐 %H:%M"

That have a certain background and a certain foreground color. I use "latte" during the daytime (light system theme) and "moccha" for the dark system theme. I switch with a script containing this:

TM_PATH=~/.config/tmux/tmux-color.conf
TM_TOUCH=~/.config/tmux/tmux.conf

  # switch tmux to light
  sed -i -e 's/background "black"/background "lightgrey"/' $TM_PATH
  sed -i -e "s/mocha/latte/" $TM_PATH
  touch $TM_TOUCH
  /opt/homebrew/bin/tmux source-file $TM_TOUCH

Ths used to work just fine, but now it doesn't anymore. The status bar stays in the previously selected theme, I have to quit tmux and restart it again. Even pulling up a previous session will have the wrong colors:

Screenshot 2025-07-26 at 10 34 31

What am I doing wrong? Am I missing something?

Originally posted by @cug in #550

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions