Implemented better idle script

This commit is contained in:
Tibo De Peuter 2022-04-26 09:26:09 +02:00
parent 23f6a24a95
commit 1e94e7cde5
2 changed files with 21 additions and 13 deletions

17
scripts/idle.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Configuratoin of swayidle
# Just run the script
pkill swayidle
swayidle -w \
timeout 300 \
'brightnessctl -s set 15%' \
resume 'brightnessctl -r' \
timeout 600 \
'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
timeout 1200 \
'systemctl suspend' \
before-sleep 'swaylock -f --screenshots --clock --indicator --effect-blur 5x5'