From f7cffeeff26d2f99803a1e8113c1874dc1186ff0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 17 Mar 2009 20:57:24 +0100 Subject: don't try to lock again if slock is running --- screen-locker.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'screen-locker.sh') diff --git a/screen-locker.sh b/screen-locker.sh index 3c1c9f8..144e20a 100755 --- a/screen-locker.sh +++ b/screen-locker.sh @@ -24,4 +24,6 @@ unlock () { ssh mistral 'python ~/bin/irssi_socket_control.py 0' } +if pidof slock &> /dev/null; then exit 1; fi + (lock && unlock) & -- cgit v1.2.3-24-g4f1b