summaryrefslogtreecommitdiff
path: root/swaylockd
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-07-05 02:30:55 -0500
committerzachir <zachir@librem.one>2023-07-05 02:30:55 -0500
commiteaf278d39aa7f7a322bdb21feb6af9ea5a5bf9df (patch)
tree18704c81ddb70fcebc76ad7ecdb598976e16ae2c /swaylockd
parent67c1e6d4ecb4226e99528f0b20552f4f34b08c34 (diff)
Update swaylockd to work better with swaylock
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