summaryrefslogtreecommitdiff
path: root/swaylockd
diff options
context:
space:
mode:
Diffstat (limited to 'swaylockd')
-rwxr-xr-xswaylockd4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaylockd b/swaylockd
index 76208ee..479e003 100755
--- a/swaylockd
+++ b/swaylockd
@@ -1,7 +1,7 @@
#!/bin/sh
-WLCNT="$(pgrep -U$(whoami) -x waylockd | wc -l)"
-[ "${WLCNT:-0}" -gt "2" ] && printf "Already running!\n" && exit
+WLCNT="$(pgrep -U$(whoami) -x swaylockd | wc -l)"
+[ "${WLCNT:-0}" -gt "1" ] && printf "Already running!\n" && exit
while true; do
swaylock && exit