Use physlock instead of vlock.

This commit is contained in:
gardouille 2017-05-04 15:07:42 +02:00
parent c7a8fdd093
commit 47ac7cd5e6
1 changed files with 6 additions and 6 deletions

View File

@ -12,9 +12,9 @@
## tmux attach -d -t SESSION_ID
##
## Dépendances:
## vlock : permet de verrouiller tmux en cas d'inactivé ou d'appel (CTRL+b x)
## urlview : permet de lister les liens présents dans une fenêtre (CTRL+b u)
## cmatrix: simulates the display from "The Matrix" used both with vlock (CTRL+b x)
## physlock: lightweight Linux console locking tool (CTRL+b x).
## urlview: Extracts URLs from text (CTRL+b u).
## cmatrix: Simulates the display from "The Matrix" used both with *physlock* (CTRL-b x).
### colors {{{
black="#000000"
@ -231,9 +231,9 @@ set -g pane-base-index 1
# Verrouillage de la session après inactivité (en s)
set -g lock-after-time 1800
# pour que le lock marche sous linux (aptitude install vlock)
# Use both cmatrix (if available) and vlock
if 'command -v cmatrix' 'set -g lock-command "cmatrix -s && vlock"' 'set -g lock-command vlock'
# pour que le lock marche sous linux (aptitude install physlock)
# Use both cmatrix (if available) and physlock
if 'command -v cmatrix' 'set -g lock-command "cmatrix -s && physlock"' 'set -g lock-command physlock'
# Initialize sessions
bind I source-file ~/.tmux/splitWORK\; display-message "tmux split for Work"