diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-08-09 23:24:03 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-08-09 23:24:03 +0100 |
| commit | 1be3e63215eba7e9f606156b1ea745944e1e278f (patch) | |
| tree | 6eb97aaa7967293afb9129a1203acbb3618ed5ad /hyprland/hypridle.conf | |
| parent | 8dafe3923ea3d473f5495134e2241d1d34f63273 (diff) | |
Sort hyprland config
Diffstat (limited to 'hyprland/hypridle.conf')
| -rw-r--r-- | hyprland/hypridle.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hyprland/hypridle.conf b/hyprland/hypridle.conf new file mode 100644 index 0000000..3e6b5bf --- /dev/null +++ b/hyprland/hypridle.conf @@ -0,0 +1,21 @@ +general { + lock_cmd = pidof hyprlock || hyprlock + before_sleep_cmd = loginctl lock-session + after_sleep_cmd = hyprctl dispatch dpms on +} + +listener { + timeout = 300 + on-timeout = notify-send 'Power' 'System will suspend soon due to inactivity' +} + +listener { + timeout = 310 + on-timeout = loginctl lock-session +} + +listener { + timeout = 320 + on-timeout = systemctl suspend +} + |
