From 39bd03e025b1aa43fd73f2c165e37cd1e6000740 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 8 Jul 2024 10:02:53 -0500 Subject: [PATCH] Updated hyprland screen lock behavior --- user/wm/hyprland/hyprland.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index b2f5860..966d8fe 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -607,11 +607,16 @@ in } listener { - timeout = 300 # in seconds + timeout = 150 # in seconds on-timeout = loginctl lock-session } listener { - timeout = 600 # in seconds + timeout = 165 # in seconds + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on + } + listener { + timeout = 7200 # in seconds on-timeout = systemctl suspend } '';