Give user option to toggle sleep

This commit is contained in:
Yannick7777 2024-08-20 00:13:00 +02:00
parent d808086ad3
commit 702bbe728b

View file

@ -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}
}