aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/system-user/swayidle.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/system-user/swayidle.service')
-rw-r--r--systemd/system-user/swayidle.service7
1 files changed, 4 insertions, 3 deletions
diff --git a/systemd/system-user/swayidle.service b/systemd/system-user/swayidle.service
index f5d223a..9757f0b 100644
--- a/systemd/system-user/swayidle.service
+++ b/systemd/system-user/swayidle.service
@@ -7,9 +7,10 @@ PartOf=graphical-session.target
Type=simple
ExecStart=/usr/bin/swayidle -w \
timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \
- timeout 315 "hyprlock" \
- timeout 320 "sytemctl suspend && swaymsg 'output * power off'" resume "swaymsg 'output * power on'" \
- before-sleep "hyprlock"
+ timeout 310 "systemctl suspend-then-hibernate" \
+ before-sleep "loginctl lock-session" \
+ lock "hyprlock" \
+ unlock "pkill -USR1 hyprlock"
[Install]