diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-11-29 15:28:16 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-11-29 15:28:16 +0100 |
commit | d9fc5ca499a83c692da07c528c84bdfb332dd626 (patch) | |
tree | 02fb537f9004e335af418aa0ced1ea895f22b3f3 | |
parent | 4251d8d628331a7733276eec50b9f31cb792a7ca (diff) |
tmux: add bindings for activity/silence monitoring
-rw-r--r-- | dotfiles/tmux.conf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index 0e80c95..07f0d90 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -19,6 +19,20 @@ bind | split-window -h -c '#{pane_current_path}' # spawn new shells in the current path bind c new-window -c '#{pane_current_path}' +# activity/silence monitoring +## mark windows with activity/silence monitoring with "A/S" +set -g window-status-format "#I:#W#F\ +#{?monitor-activity,A,}\ +#{?monitor-silence,S,}\ +" +set -g window-status-current-format "#I:#W#F\ +#{?monitor-activity,A,}\ +#{?monitor-silence,S,}\ +" + +bind t setw monitor-activity +bind T command-prompt -p "Monitor for silent interval (secs):" 'setw monitor-silence %%' + set-option -g history-limit 16384 set-option -g update-environment "\ DISPLAY\ |