Disable display tmux "Activity in window n"

I want tmux not to blink the message “Activity in window n” when activity is in an inactive window. I would like the only sign of background activity to be the color of the title bar of the window that I configured.

The relative lines of the configuration file I have:

set status on
setw -g monitor-activity on
set -g visual-activity on
set -g visual-bell on

Does anyone know how I can do this?

+4
source share
3 answers

According to the source code of tmux (version 1.8 at hand) ( server_window_check_activity(), server-window.c), the corresponding option visual-activitythat you currently set to on:

if (options_get_number(&s->options, "visual-activity")) {
    for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
        c = ARRAY_ITEM(&clients, i);
        if (c == NULL || c->session != s)
            continue;
        status_message_set(c, "Activity in window %u",
        winlink_find_by_window(&s->windows, w)->idx);
    }
}

EDIT: Same function, slightly higher:

if (!options_get_number(&w->options, "monitor-activity"))
    return (0);

monitor-activity .

2: ;)

+5

~/.tmux.conf:

set -g visual-activity off

on, Activity N.

+3

As tmux=2.2it worked for me:

setw -g monitor-activity on
set-option -g bell-action none

(but set -g visual-activity off, as suggested above, was not)

0
source

Source: https://habr.com/ru/post/1528213/


All Articles