I am using tmux 3.4 on Ubuntu noble 24.04.3. I would like tmux to handle bells as follows:
- If a bell occurs in the current window, echo it and don't do anything else.
- If a bell occurs in a window other than the current one, echo it and also display a message at the bottom of the screen. (I'll settle for just the message if doing both isn't possible.)
I currently have the following bell-related options set in my ~/.tmux.conf:
set -g bell-action any set -g visual-bell both set -wg monitor-bell on This does what I want when a bell occurs in an inactive window, but when a bell occurs in the current window, I get both a bell and the message, which is annoying. Changing bell-action to other gets rid of the message but also suppresses all bells in the current window entirely, which is even worse.
How can I tell tmux to do what I want with bells?