From 11da908b78b474dc8b574f9dea695c633fd8a88f Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sun, 19 Jun 2022 19:40:00 +0530 Subject: minor changes --- etc/systemd/logind.conf | 8 ++++---- etc/systemd/system/betterlockscreen@.service | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'etc/systemd') diff --git a/etc/systemd/logind.conf b/etc/systemd/logind.conf index c004d34..63747c2 100644 --- a/etc/systemd/logind.conf +++ b/etc/systemd/logind.conf @@ -22,15 +22,15 @@ #KillExcludeUsers=root #InhibitDelayMaxSec=5 #UserStopDelaySec=10 -#HandlePowerKey=poweroff +HandlePowerKey=suspend #HandlePowerKeyLongPress=ignore #HandleRebootKey=reboot #HandleRebootKeyLongPress=poweroff -#HandleSuspendKey=suspend +HandleSuspendKey=suspend #HandleSuspendKeyLongPress=hibernate -#HandleHibernateKey=hibernate +HandleHibernateKey=suspend #HandleHibernateKeyLongPress=ignore -#HandleLidSwitch=suspend +HandleLidSwitch=suspend #HandleLidSwitchExternalPower=suspend #HandleLidSwitchDocked=ignore #PowerKeyIgnoreInhibited=no diff --git a/etc/systemd/system/betterlockscreen@.service b/etc/systemd/system/betterlockscreen@.service index 012789a..99af0e0 100644 --- a/etc/systemd/system/betterlockscreen@.service +++ b/etc/systemd/system/betterlockscreen@.service @@ -7,9 +7,9 @@ Before=suspend.target User=%I Type=simple Environment=DISPLAY=:0 +ExecStartPre=/usr/bin/xset dpms force suspend ExecStart=/usr/bin/betterlockscreen --lock dimblur TimeoutSec=infinity -ExecStartPost=/usr/bin/sleep 1 [Install] WantedBy=sleep.target -- cgit v1.2.3