Hi,

Someone in #tmux was asking about how to blank the tmux window after a
timeout -- a feature apparently which GNU Screen has.  Here's how I do it,
in case anyone else is interested:

set -g lock-server off
set -g lock-after-time 1800
set -g lock-command 'tput civis && read -s -n1'

Thankfully, any lock-command is ran directly through system() so I can
literally put shell commands here, and have /bin/sh run them.

This works quite nicely, but what if you wanted to have this feature *and*
still be able to lock the client manually?

bind x set lock-command '/usr/bin/vlock' \; lock-client \; set lock-command 
'tput civis && read -s -n1'

(That should all be on one line.)

Hope it's useful.  :)

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to