summaryrefslogtreecommitdiffstats
path: root/screen-locker.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-03-17 20:57:24 +0100
committerFlorian Pritz <f-p@gmx.at>2009-03-17 20:57:24 +0100
commitf7cffeeff26d2f99803a1e8113c1874dc1186ff0 (patch)
tree034cb17ffdc352921005aedad0f8c2abc90c320e /screen-locker.sh
parent4288846de96725d4050cfd7641f30ef979916490 (diff)
downloadbin-f7cffeeff26d2f99803a1e8113c1874dc1186ff0.tar.gz
bin-f7cffeeff26d2f99803a1e8113c1874dc1186ff0.tar.xz
don't try to lock again if slock is running
Diffstat (limited to 'screen-locker.sh')
-rwxr-xr-xscreen-locker.sh2
1 files changed, 2 insertions, 0 deletions
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) &