Lock Tmux Session With Vlock
12,218
Solution 1
Put the following in the .tmux.conf
:
set-option -g lock-command vlock
Solution 2
I have the following tmux.conf
lines:
# Enable locking
set -g lock-command vlock
set -g lock-after-time 0 # Seconds; 0 = never
bind L lock-session
Pressing [prefix]
+ L
(capital) locks my session.
Related How can I lock just the current client?
Related videos on Youtube
Comments
-
kzh over 1 year
I have just installed
tmux
andvlock
. When I try to perform thelock-session
command, my terminal flashes and then nothing happens. Is there something in my.tmux.conf
that must be added to telltmux
that I have a locking utility? If so, what is it?In other words:
How can I do
lock-session
withtmux
?