Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've switched from GNU Screen to tmux. They're both similar, except that tmux is still maintained.

GNU Screen has a C-a _ ("silence") command. This command makes GNU Screen monitor the current window and alert me when there's been 30 seconds of inactivity. This is quite useful: for example, GNU Screen can watch a long apt-get dist-upgrade process and alert me when dpkg has a question for me.

Does tmux have an equivalent command? I tried searching the Web but didn't find an answer.

share|improve this question
up vote 14 down vote accepted

The manpage reveals the answer. You will need tmux 1.4 (released Dec. 2010) or better.

Press Ctrl+B then enter the command:

:setw monitor-silence 30

To identify all quiet windows in the session, apply the setting to all windows:

:setw -g monitor-silence 30

share|improve this answer
3  
To stop monitoring for silence: :setw monitor-silence 0 – Matthew Dec 7 '15 at 19:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.