Fixed no screen on wake

This commit is contained in:
Tibo De Peuter 2022-04-28 11:27:39 +02:00
parent e8b3bb5d79
commit c4ab743d5d

View file

@ -1,17 +1,19 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Configuratoin of swayidle # Configuration of swayidle
# Just run the script # Just run the script
# Kill previous instances to avoid clashing
pkill swayidle pkill swayidle
swayidle -w \ swayidle -w \
timeout 300 \ timeout 300 \
'brightnessctl -s set 15%' \ 'brightnessctl -s -set 15%' \
resume 'brightnessctl -r' \ resume 'brightnessctl -r' \
timeout 600 \ timeout 600 \
'swaymsg "output * dpms off"' \ 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
timeout 1200 \ timeout 1200 \
'systemctl suspend' \ 'systemctl suspend' \
before-sleep 'swaylock -f --screenshots --clock --indicator --effect-blur 5x5' before-sleep 'swaylock -f --screenshots --clock --indicator --effect-blur 5x5; swaymsg "output * dpms on"'
# Screen needs to be turned back on or you will get a black screen after waking up again.