sisyphus/scripts/idle.sh

18 lines
429 B
Bash
Raw Normal View History

2022-04-26 09:26:09 +02:00
#!/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'