catppuccin/tmux

Bell status icon does not display properly

Closed this issue · 3 comments

Is there an existing issue outlining your problem?

  • I have searched the existing issues and they do not solve my problem.

Describe your problem.

Hello.

To monitor the execution of some commands of interest, I ring the bell when they complete and display the corresponding bell icon in the tmux status bar.

When the window that triggers the bell is not the previous window, the bell status icon does not display properly, it is like it has been cropped on the right side.

Basic configuration and screenshots below.

Thanks for your inputs!

Paste your configuration.

set -g default-terminal "screen-256color"
set -sg terminal-overrides ",*:RGB"

set-window-option -g window-status-bell-style none
set -g @catppuccin_window_status_enable "yes"
set -g @catppuccin_window_status_icon_enable "yes"

set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
set -g @plugin "catppuccin/tmux"

run "~/.config/tmux/plugins/tpm/tpm"

Attach screenshots.

Let's say that thare are 3 windows open, numbered 0, 1 and 2.

  • When the window that rings the bell is the previous one, it displays correctly:

Run "sleep 5s && echo -e '\a'" in window 0 then move to window 1.

image

  • When the window that rings the bell is not the previous one, it does not display correctly:

Run "sleep 5s && echo -e '\a'" in window 0 then move to window 1 then move to window 2.

image

What tmux version are you seeing the issue on?

tmux 3.3a

Any additional comments?

No response

vdbe commented

This is a font problem.
Some solution's:

  • Change font
  • Add a space behind the icon set -g @catppuccin_icon_window_bell "󰂞 "

for example my tmux (with your settings except extra modules):
Screenshot from 2024-05-14 17-50-17
Screenshot from 2024-05-14 17-50-42

Adding an extra space is working great!

I did not even try because I thought it was the default based on https://github.com/catppuccin/tmux?tab=readme-ov-file#override-windows-status-icons 😅

Thanks a lot @vdbe !

vdbe commented

Yea should update the examples to reflect the default some do others do not or at least specify the default.