mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-25 22:15:59 +01:00
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:
parent
3130c6a18b
commit
7b55b46f2a
1 changed files with 22 additions and 1 deletions
|
@ -37,3 +37,24 @@ 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
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue