Daemonize swaylock to allow for subsequent actions
This commit is contained in:
parent
7c3ba7cad8
commit
73501f0489
|
@ -117,7 +117,7 @@ elif [[ $1 == "undim" ]]; then
|
||||||
$HOME/scripts/thinkpad/blc.pl = $(cat $BLFILE) &>-
|
$HOME/scripts/thinkpad/blc.pl = $(cat $BLFILE) &>-
|
||||||
elif [[ $1 == "lock" ]]; then
|
elif [[ $1 == "lock" ]]; then
|
||||||
if [[ $IDLEMODE -gt 2 ]]; then
|
if [[ $IDLEMODE -gt 2 ]]; then
|
||||||
swaylock -c 00000000
|
swaylock -f -c 00000000
|
||||||
fi
|
fi
|
||||||
elif [[ $1 == "unlock" ]]; then
|
elif [[ $1 == "unlock" ]]; then
|
||||||
kill -USR1 $(pgrep swaylock)
|
kill -USR1 $(pgrep swaylock)
|
||||||
|
|
Loading…
Reference in New Issue