From 4e8a4df98f9a91879a711543d7f6a06265922d0a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 2 Sep 2024 17:34:59 +0800 Subject: updates --- dot-config/hypr/hypridle.conf | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dot-config/hypr/hypridle.conf b/dot-config/hypr/hypridle.conf index ace90550..aca40fca 100644 --- a/dot-config/hypr/hypridle.conf +++ b/dot-config/hypr/hypridle.conf @@ -5,8 +5,19 @@ general { } listener { - timeout = 1800000 # 30min - on-timeout = $HOME/scripts/hypridle.sh --idle # set monitor backlight to minimum, avoid 0 on OLED monitor. - on-resume = $HOME/scripts/hypridle.sh --stopidle # monitor backlight restore. + timeout = 300 # 5min + on-timeout = hyprlock # lock the screen. +} + +listener { + timeout = 1800000 # 30min + on-timeout = $HOME/scripts/hypridle.sh --idle + on-resume = $HOME/scripts/hypridle.sh --stopidle +} + +listener { + timeout = 1800000 # 30min + on-timeout = hyprctl dispatch dpms off + on-resume = hyprctl dispatch dpms on } -- cgit v1.2.3