Hello.
I just updated my system and my tmux session now shows a very “ugly” status bar:
Previously, I had a nice looking bar, with catppuccin colors and their icons. Here’s the home-manager configuration for my tmux:
programs.tmux = {
enable = true;
keyMode = "vi";
plugins = with pkgs; [
{
plugin = tmuxPlugins.catppuccin;
extraConfig = ''
set -g @catppuccin_flavour 'macchiato' # latte, frappe, macchiato or mocha
# configure sequence of status line blocks
set -g @catppuccin_status_modules_left "session"
set -g @catppuccin_status_modules_right "directory date_time"
# overwrite window name to be the window name if set
set -g @catppuccin_window_current_text "#{window_name}"
set -g @catppuccin_window_default_text "#{window_name}"
# overwrite directory text to be full path of current directory
set -g @catppuccin_directory_text "#{pane_current_path}"
'';
}
];
extraConfig = ''
set -g default-terminal "screen-256color"
# Increase history
set-option -g history-limit 10000
# Reduce interval that Tmux updates status line
set -g status-interval 1
# Full color range
set-option -ga terminal-overrides ",*256col*:Tc,alacritty:Tc"
# Rebind main key to C-a
unbind C-b
set -g prefix C-a
bind b send-prefix
bind C-b last-window
# Force a reload of the config file with C-<prefix> r
unbind r
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
# Enable clicking around
set -g mouse on
# Pane movement shortcuts - same as Vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10
# Use 24 hour clock
setw -g clock-mode-style 24
# Quick pane cycling
# TODO what is this for?
unbind ^A
bind ^A select-pane -t :.+
# Renumber windows when one is closed
set -g renumber-windows on
# Make splits open in the current dir
unbind %
bind % split-window -h -c "#{pane_current_path}"
unbind \"
bind \" split-window -v -c "#{pane_current_path}"
# Reduce escape-time to be uniform with neovim
# cf. https://github.com/neovim/neovim/issues/2035
set-option -sg escape-time 10
# Set focus-events for better nvim-tmux integration
set-option -g focus-events on
'';
};
The weird thing is that if I manually craft a tmux.conf
and do a tmux -f tmux.conf
, nothing changes. I tried with an empty file and the prefix key is not ctrl-b. I tried changing the clock back to 12h format, but it still shows 24h. It is like Tmux is not using my custom configs anymore. How’s that possible?
Did anything in Tmux changed recently? How can I “fix” this?