From faebc9dc677191a93b605b7984fadf89f9fa2ef3 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 9 Jul 2024 09:52:25 +0200 Subject: [PATCH] Lock tmux if running --- veille.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/veille.sh b/veille.sh index 48604d4..9fa5cf7 100755 --- a/veille.sh +++ b/veille.sh @@ -15,6 +15,10 @@ ## depend: i3lock +# Lock tmux if running +pgrep tmux >/dev/null && + tmux lock-client + # SSH Agent killall --quiet ssh rm --recursive --force -- ~/.ssh/socks/*