summaryrefslogtreecommitdiffstats
path: root/screen-locker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'screen-locker.sh')
-rwxr-xr-xscreen-locker.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen-locker.sh b/screen-locker.sh
index efb3dbb..a27557f 100755
--- a/screen-locker.sh
+++ b/screen-locker.sh
@@ -24,6 +24,6 @@ unlock () {
}
#if pidof i3lock &> /dev/null; then exit 1; fi
-if pidof slock &> /dev/null; then exit 1; fi
+if pgrep slock &> /dev/null; then exit 1; fi
(lock && unlock) &