diff options
| author | LMBishop <me@leonardobishop.com> | 2023-07-17 03:04:24 +0100 |
|---|---|---|
| committer | LMBishop <me@leonardobishop.com> | 2023-07-17 03:04:24 +0100 |
| commit | af6ca11ffa79dcb88e0d0d62a508213936490c4d (patch) | |
| tree | d5925fbd15ade92b67685eb3ce233368766d2553 | |
| parent | 44f06a057fec01cf51d9f6f103c45ed27c1cf3c3 (diff) | |
Add back swayidle suspend
| -rw-r--r-- | sway/config | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config b/sway/config index 330f12f..363e666 100644 --- a/sway/config +++ b/sway/config @@ -181,6 +181,9 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE # Swayidle exec swayidle -w \ + timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \ + timeout 310 "swaylock" \ + timeout 315 "systemctl suspend" \ before-sleep "swaylock" exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 |
