From 6ec1d80e9a06d13777af00f250527af9369d472c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 20 May 2023 10:49:02 +0300 Subject: [.a/sys] Commented out while loop that awaits lid close to run lock.sh Lid button is configured to be handled by elogind, not by a while loop --- .a/sys/on-wm-session.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.a') diff --git a/.a/sys/on-wm-session.sh b/.a/sys/on-wm-session.sh index b80eac0..2def89f 100755 --- a/.a/sys/on-wm-session.sh +++ b/.a/sys/on-wm-session.sh @@ -22,7 +22,7 @@ if [[ $device == "desktop" ]]; then fi if [[ $device == "laptop" ]]; then - while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/.a/sys/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf + # while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/.a/sys/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf libinput-gestures-setup start & # start gestures blueberry & # bluetooth app fi -- cgit v1.2.3