mirror of
https://github.com/Yannick7777/dotfiles.git
synced 2025-06-26 14:45:21 +02:00
Give user option to toggle sleep
This commit is contained in:
parent
d808086ad3
commit
702bbe728b
1 changed files with 2 additions and 3 deletions
|
@ -13,12 +13,11 @@ listener {
|
||||||
|
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 330
|
timeout = 301
|
||||||
on-timeout = hyprctl dispatch dpms off
|
on-timeout = hyprctl dispatch dpms off
|
||||||
on-resume = hyprctl dispatch dpms on
|
on-resume = hyprctl dispatch dpms on
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 600
|
timeout = 600
|
||||||
on-timeout = playerctl status -s | grep -qv 'Playing' && systemctl sleep || playerctl status -s | grep -q '.*' || systelctl sleep # Only go to sleep if nothing is playing
|
on-timeout = grep -qs "true" .config/hypr/enable_sleep.conf && playerctl status -s | grep -qv 'Playing' && systemctl sleep || playerctl status -s | grep -q '.*' || systelctl sleep # Only go to sleep if nothing is playing}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue