added hypr idle/lock

This commit is contained in:
Benjamin Palko 2024-03-03 01:17:20 -05:00
parent bf59c1a190
commit 15f0855916
4 changed files with 73 additions and 2 deletions

17
hypr/hypridle.conf Normal file
View file

@ -0,0 +1,17 @@
listener {
timeout = 300 # 5min
on-timeout = hyprlock # lock screen when timeout has passed
#on-resume = notify-send "Welcome back!" # notification activity is detected after timeout has fired.
}
listener {
timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}