1 2 3 4 5 6 7
#!/bin/sh [ "$(pgrep -U$(whoami) -x waylockd | wc -l)" -gt "2" ] && echo "true" while true; do cat ~/.config/waylock/config | xargs waylock && exit done