blob: 5acedc34a367fb68292868269cdef97be0e4d28d (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
WLCNT="$(pgrep -U$(whoami) -x waylockd | wc -l)"
[ "${WLCNT:-0}" -gt "2" ] && printf "Already running!\n" && exit
while true; do
cat ~/.config/waylock/config | xargs waylock && exit
done
|