Fix enable_sleep.conf file getting ignored

This commit is contained in:
Yannick7777 2024-08-20 01:04:42 +02:00
parent 951d4ffc37
commit 97d9c58578

View file

@ -20,4 +20,5 @@ listener {
listener {
timeout = 600
on-timeout = grep -qs "true" .config/hypr/enable_sleep.conf && playerctl status -s | grep -qv 'Playing' && systemctl sleep || playerctl status -s | grep -q '.*' || systemctl sleep # Only go to sleep if nothing is playing}
on-timeout = grep -qs "true" .config/hypr/enable_sleep.conf || exit 0 ; playerctl status -s | grep -qv 'Playing' && systemctl sleep || playerctl status -s | grep -q '.*' || systemctl sleep # Only go to sleep if nothing is playing
}