add full hypridle example work with hyprlock. (#496)

* add full hypridle example work with hyprlock.

* removed general {} for better readability
This commit is contained in:
sentakuhm 2024-03-02 00:20:27 +01:00 committed by GitHub
parent 3130c6a18b
commit 7b55b46f2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 1 deletions

View File

@ -36,4 +36,25 @@ listener {
}
```
You can define as many listeners as you want.
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
}
```