Lock Tmux Session With Vlock
Put the following in the .tmux.conf
:
set-option -g lock-command vlock
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?