From 6082fb92a97f86a02fb84464ab215931b5eb65fa Mon Sep 17 00:00:00 2001 From: Hannes Date: Sun, 14 Jun 2026 00:55:08 +0200 Subject: [PATCH] updated scrren off --- hypridle.conf | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/hypridle.conf b/hypridle.conf index fbe098a..25cdfab 100755 --- a/hypridle.conf +++ b/hypridle.conf @@ -1,24 +1,10 @@ -# _____ __ __ _____ _____ __ _____ _____ _____ -# | | | | | _ | __ | | | | | | | -# | |_ _| __| -| |__| | | --| -| -# |__|__| |_| |__| |__|__|_____|_____|_____|__|__| -# -# by Bina - - listener { - timeout = 300 + timeout = 300 on-timeout = hyprlock } -# listener { -# timeout = 360 -# on-timeout = hyprctl dispatch dpms off -# on-resume = hyprctl dispatch dpms on && \ -# (pgrep -x floorp >/dev/null || floorp &) && \ -# (pgrep -x librewolf >/dev/null || librewolf &) -# -# } - - - +listener { + timeout = 360 + on-timeout = bash -c 'for o in $(hyprctl monitors -j | jq -r ".[].name"); do wlopm --off "$o"; done' + on-resume = bash -c 'for o in $(hyprctl monitors -j | jq -r ".[].name"); do wlopm --on "$o"; done' +} \ No newline at end of file