... | ... |
@@ -8,3 +8,6 @@ bind-key C-b last-window |
8 | 8 |
if-shell "test $(hostname) = raspberrypi" "set-option -g status-bg white" |
9 | 9 |
if-shell "test $(hostname) = section" "set-option -g status-bg red" |
10 | 10 |
if-shell "test $(hostname) = piledelinge" "set-option -g status-bg green" |
11 |
+if-shell "which vlock" "set-option -g lock-command vlock" |
|
12 |
+if-shell "which vlock > /dev/null && test $(hostname) = raspberrypi && egrep -qvw '^192.168.0.(1|3)' <<< $SSH_CLIENT" "set-option lock-after-time 60" |
|
13 |
+if-shell "which vlock" "bind-key x lock-client" |