Daemonize swaylock to allow for subsequent actions

This commit is contained in:
John Mertz 2024-02-22 11:06:07 -07:00
parent 7c3ba7cad8
commit 73501f0489
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ elif [[ $1 == "undim" ]]; then
$HOME/scripts/thinkpad/blc.pl = $(cat $BLFILE) &>-
elif [[ $1 == "lock" ]]; then
if [[ $IDLEMODE -gt 2 ]]; then
swaylock -c 00000000
swaylock -f -c 00000000
fi
elif [[ $1 == "unlock" ]]; then
kill -USR1 $(pgrep swaylock)