diff options
Diffstat (limited to 'etc/systemd')
-rw-r--r-- | etc/systemd/logind.conf | 8 | ||||
-rw-r--r-- | etc/systemd/system/betterlockscreen@.service | 2 |
2 files changed, 5 insertions, 5 deletions
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 |