mirror of
https://github.com/Yannick7777/dotfiles.git
synced 2025-06-26 06:35:23 +02:00
Fix enable_sleep.conf file getting ignored
This commit is contained in:
parent
951d4ffc37
commit
97d9c58578
1 changed files with 2 additions and 1 deletions
|
@ -20,4 +20,5 @@ listener {
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 600
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue