diff --git a/pages/Hypr Ecosystem/hypridle.md b/pages/Hypr Ecosystem/hypridle.md index f50e28f..a5b54c1 100644 --- a/pages/Hypr Ecosystem/hypridle.md +++ b/pages/Hypr Ecosystem/hypridle.md @@ -36,4 +36,25 @@ listener { } ``` -You can define as many listeners as you want. \ No newline at end of file +You can define as many listeners as you want. + +Full hypridle example with hyprlock + +```ini +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 = 380 # 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 +} +```