From b4458a77f1c582647dece16b67998d2fc74e4089 Mon Sep 17 00:00:00 2001 From: Tobias Sachs Date: Tue, 7 May 2024 11:05:19 +0200 Subject: [PATCH] volume fix --- stow/sway/.config/sway/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stow/sway/.config/sway/config b/stow/sway/.config/sway/config index c55d09f..e0feedc 100644 --- a/stow/sway/.config/sway/config +++ b/stow/sway/.config/sway/config @@ -47,11 +47,13 @@ bindsym $mod+F11 exec "sway output DP-1 enable; sway output HDMI-A-1 disable" set $lock_cmd ~/.bin/lockscreen.sh exec swayidle -w \ timeout 1200 $lock_cmd \ - timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + timeout 600 '$lock_cmd DisplayOff' resume 'swaymsg "output * dpms on"' \ before-sleep $lock_cmd bindsym $mod+Shift+x exec $lock_cmd +exec ~/.bin/set-volume-balance.sh + # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. -- 2.39.5