diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-17 20:57:24 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-17 20:57:24 +0100 |
commit | f7cffeeff26d2f99803a1e8113c1874dc1186ff0 (patch) | |
tree | 034cb17ffdc352921005aedad0f8c2abc90c320e /screen-locker.sh | |
parent | 4288846de96725d4050cfd7641f30ef979916490 (diff) | |
download | bin-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-x | screen-locker.sh | 2 |
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) & |