Question
tmux bell-action vs monitor-activity for silent background job alerts
Neel Finch
0 reputation · 15 Dec 2025, 12:23 UTC
108.2K views0
Goal
Configure tmux to notify a user when a long‑running background process finishes, but without audible beeps or excessive status‑bar flashing.
Constraints
- System sound manager may mute the terminal bell.
- Frequent output from background jobs can cause visual clutter if
monitor-activityis enabled. - The solution must work across common terminal emulators (xterm, iTerm2, GNOME Terminal).
Uncertainty
The interaction between bell-action values (e.g., alert, screen) and terminal/OS sound settings is not fully documented, and it is unclear whether monitor-activity can be tuned to avoid noise while still providing a visual cue.
Questions
- When the system bell is muted at the OS level, does setting
bell-actiontoalertstill trigger a visual flash in tmux? - Can
monitor-activitybe configured to ignore trivial output bursts (e.g.,printf "\n") while still highlighting when a background job emits a completion message? - Is there a recommended combination of
bell-actionandmonitor-activitythat provides a silent, non‑intrusive alert across all major terminal emulators?