From f2ab754729dab2a4328954ef8348c1526b871e99 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Tue, 10 Nov 2020 18:14:45 -0500 Subject: [PATCH] add screen lock to suspend on lid close --- sleepy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sleepy.sh b/sleepy.sh index 0c263a0..9a17de3 100755 --- a/sleepy.sh +++ b/sleepy.sh @@ -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