Fixed no screen on wake
This commit is contained in:
parent
e8b3bb5d79
commit
c4ab743d5d
1 changed files with 5 additions and 3 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue