From eaf278d39aa7f7a322bdb21feb6af9ea5a5bf9df Mon Sep 17 00:00:00 2001 From: zachir Date: Wed, 5 Jul 2023 02:30:55 -0500 Subject: Update swaylockd to work better with swaylock --- swaylockd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'swaylockd') 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 -- cgit v1.2.3