Finally made swayidle and swaylock work lol

This commit is contained in:
Cheri 2023-02-27 12:17:02 +02:00 committed by vib
parent d0f8e2fabc
commit e51120125b
4 changed files with 35 additions and 5 deletions

View file

@ -28,9 +28,8 @@ output DP-1 bg ~/.local/share/wallpapers/bg2 fill
### Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
timeout 600 'swaylock & swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'
font terminus 8
smart_borders no_gaps

View file

@ -179,8 +179,7 @@ mode "resize" {
bindsym $mod+r mode "resize"
# Turn off all displays (useful on laptops)
bindsym $mod+Alt+c exec killall -SIGUSR1 swayidle
bindsym $mod+Alt+c exec sleep 1 && killall -SIGUSR1 swayidle
# Volume control
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%