From 97d9c5857834339b8ce896b132a65d0b2b352c7e Mon Sep 17 00:00:00 2001 From: Yannick7777 <87943421+Yannick7777@users.noreply.github.com> Date: Tue, 20 Aug 2024 01:04:42 +0200 Subject: [PATCH] Fix enable_sleep.conf file getting ignored --- .config/hypr/hypridle.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index d33896d..204be41 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -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 +}