diff options
Diffstat (limited to 'swaylockd')
-rwxr-xr-x | swaylockd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |