Ubuntu – Lock Tmux Session With Vlock

command linelocklock-screentmux

I have just installed tmux and vlock. When I try to perform the lock-session command, my terminal flashes and then nothing happens. Is there something in my .tmux.conf that must be added to tell tmux that I have a locking utility? If so, what is it?

In other words:

How can I do lock-session with tmux?

Best Answer

Put the following in the .tmux.conf:

set-option -g lock-command vlock