diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2025-11-04 22:40:46 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2025-11-04 22:40:46 +0000 |
| commit | 2cbc77a8d17ae8c941f7008b31505fa616b53d87 (patch) | |
| tree | d801f23d7659bb152b2cfb9846f73498fa3c6447 /systemd | |
| parent | f35f07a9a742a9cc80f61495fa01a8d86bba2f56 (diff) | |
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/system-user/swayidle.service | 7 |
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] |
