add screen lock to suspend on lid close

This commit is contained in:
Iris Lightshard 2020-11-10 18:14:45 -05:00
parent 9ef6ded3c1
commit f2ab754729
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -15,6 +15,7 @@ acpi_listen | {
if [ ! -z "$(acpi -a | grep off-line)" ]; then
if [ "${event}" = "button/lid LID close" ]; then
slock & sleep 1
zzz
fi
fi