Added idle suspend to Hyprland

This commit is contained in:
Logan G 2023-10-04 22:39:49 -06:00
parent 02affacfca
commit 580448a3d3
Signed by untrusted user: logan
GPG key ID: E328528C921E7A7A
2 changed files with 3 additions and 1 deletions

View file

@ -2,3 +2,5 @@ $lockBG = ~/Pictures/orion-nebula-5120x2880-hubble-space-telescope-nasa-hd-5k-19
$idleLockTime = 600 $idleLockTime = 600
$idleScreenTime = 605 $idleScreenTime = 605
$idleScreenTimeLocked = 10 $idleScreenTimeLocked = 10
$suspendTime = -1
$suspendCMD = systemctl suspend

View file

@ -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 = wl-paste --type image --watch cliphist store #Stores only image data
exec-once = lxqt-policykit-agent exec-once = lxqt-policykit-agent
exec-once = hyprpaper 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 exec = import-gsettings