From 580448a3d389aba1722cb3c82ac5f098a8e127dd Mon Sep 17 00:00:00 2001 From: Logan G Date: Wed, 4 Oct 2023 22:39:49 -0600 Subject: [PATCH] Added idle suspend to Hyprland --- .config/hypr/conf.d/vars.conf.example | 2 ++ .config/hypr/hyprland.conf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/hypr/conf.d/vars.conf.example b/.config/hypr/conf.d/vars.conf.example index 7153631..d99aea2 100644 --- a/.config/hypr/conf.d/vars.conf.example +++ b/.config/hypr/conf.d/vars.conf.example @@ -2,3 +2,5 @@ $lockBG = ~/Pictures/orion-nebula-5120x2880-hubble-space-telescope-nasa-hd-5k-19 $idleLockTime = 600 $idleScreenTime = 605 $idleScreenTimeLocked = 10 +$suspendTime = -1 +$suspendCMD = systemctl suspend diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index cce653b..575511b 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -190,7 +190,7 @@ exec-once = wl-paste --type text --watch cliphist store #Stores only text data exec-once = wl-paste --type image --watch cliphist store #Stores only image data exec-once = lxqt-policykit-agent exec-once = hyprpaper -exec-once = swayidle -w timeout $idleLockTime '$lockCMD' timeout $idleScreenTime 'hyprctl dispatch dpms off' timeout $idleScreenTimeLocked 'pgrep -x swaylock && hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lockCMD' before-sleep 'playerctl -a pause' +exec-once = swayidle -w timeout $idleLockTime '$lockCMD' timeout $idleScreenTime 'hyprctl dispatch dpms off' timeout $idleScreenTimeLocked 'pgrep -x swaylock && hyprctl dispatch dpms off' timeout $suspendTime '$suspendCMD' resume 'hyprctl dispatch dpms on' before-sleep '$lockCMD' before-sleep 'playerctl -a pause' exec = import-gsettings