From 7d424c9ad8017f441ca1b9fca84d24577aba36cc Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Sat, 26 Oct 2024 15:23:09 +0300 Subject: [PATCH] hypridle config --- hypr/hypridle/hypridle.conf | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/hypr/hypridle/hypridle.conf b/hypr/hypridle/hypridle.conf index 7dbe674..e6c1a32 100644 --- a/hypr/hypridle/hypridle.conf +++ b/hypr/hypridle/hypridle.conf @@ -1,29 +1,28 @@ - general { - lock_cmd = pidof hyprlock || hyprlock - before_sleep_cmd = hyprlock - after_sleep_cmd = hyprctl dispatch dpms on + lock_cmd = "pidof hyprlock || hyprlock" + before_sleep_cmd = "hyprlock" + after_sleep_cmd = "hyprctl dispatch dpms on" } listener { timeout = 150 - on-timeout = [[ "$(playerctl -l)" != "No players found" && "$(playerctl -l | grep -v 'kdeconnect.mpris')" != "" && "$(playerctl status 2>/dev/null)" != "Playing" ]] && brightnessctl -s set 10 - on-resume = brightnessctl -r + on-timeout = "[[ $(playerctl -l) != \"No players found\" && $(playerctl -l | grep -v 'kdeconnect.mpris') != \"\" && $(playerctl status 2>/dev/null) != \"Playing\" ]] && brightnessctl -s set 10" + on-resume = "brightnessctl -r" } listener { timeout = 300 - on-timeout = [[ "$(playerctl -l)" != "No players found" && "$(playerctl -l | grep -v 'kdeconnect.mpris')" != "" && "$(playerctl status 2>/dev/null)" != "Playing" ]] && hyprlock + on-timeout = "[[ $(playerctl -l) != \"No players found\" && $(playerctl -l | grep -v 'kdeconnect.mpris') != \"\" && $(playerctl status 2>/dev/null) != \"Playing\" ]] && hyprlock" } listener { timeout = 330 - on-timeout = [[ "$(playerctl -l)" != "No players found" && "$(playerctl -l | grep -v 'kdeconnect.mpris')" != "" && "$(playerctl status 2>/dev/null)" != "Playing" ]] && hyprctl dispatch dpms off - on-resume = hyprctl dispatch dpms on + on-timeout = "[[ $(playerctl -l) != \"No players found\" && $(playerctl -l | grep -v 'kdeconnect.mpris') != \"\" && $(playerctl status 2>/dev/null) != \"Playing\" ]] && hyprctl dispatch dpms off" + on-resume = "hyprctl dispatch dpms on" } listener { timeout = 1800 - on-timeout = [[ "$(playerctl -l)" != "No players found" && "$(playerctl -l | grep -v 'kdeconnect.mpris')" != "" && "$(playerctl status 2>/dev/null)" != "Playing" ]] && systemctl suspend + on-timeout = "[[ $(playerctl -l) != \"No players found\" && $(playerctl -l | grep -v 'kdeconnect.mpris') != \"\" && $(playerctl status 2>/dev/null) != \"Playing\" ]] && systemctl suspend" }