diff options
| author | zachir <zachir@librem.one> | 2023-07-05 02:30:55 -0500 |
|---|---|---|
| committer | zachir <zachir@librem.one> | 2023-07-05 02:30:55 -0500 |
| commit | eaf278d39aa7f7a322bdb21feb6af9ea5a5bf9df (patch) | |
| tree | 18704c81ddb70fcebc76ad7ecdb598976e16ae2c /swaylockd | |
| parent | 67c1e6d4ecb4226e99528f0b20552f4f34b08c34 (diff) | |
Update swaylockd to work better with swaylock
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 |
