From 1be3e63215eba7e9f606156b1ea745944e1e278f Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Fri, 9 Aug 2024 23:24:03 +0100 Subject: Sort hyprland config --- hyprland/hypridle.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 hyprland/hypridle.conf (limited to 'hyprland/hypridle.conf') 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 +} + -- cgit v1.2.3-70-g09d2