From 702bbe728b291c389e77ccc4d347ef484e8b91e4 Mon Sep 17 00:00:00 2001 From: Yannick7777 <87943421+Yannick7777@users.noreply.github.com> Date: Tue, 20 Aug 2024 00:13:00 +0200 Subject: [PATCH] Give user option to toggle sleep --- .config/hypr/hypridle.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index b46d328..b30f742 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -13,12 +13,11 @@ listener { listener { - timeout = 330 + timeout = 301 on-timeout = hyprctl dispatch dpms off on-resume = hyprctl dispatch dpms on } listener { 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}