1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-07-12 22:07:44 +02:00

swayidle: improved script - added screen dim and off

This commit is contained in:
tiyn 2025-07-11 02:58:43 +02:00
parent 2c6f888ed7
commit 3aafdd54f7

View File

@ -1,7 +1,6 @@
#!/bin/sh
exec swayidle -w \
timeout 600 "brightnessctl -s set 0%" resume "brightnessctl -r"\
timeout 600 "notify-send -u critical 'Power' 'System will suspend in 20 minutes!'"\
timeout 1200 "notify-send -u critical 'Power' 'Laptop will suspend in 10 minutes!'"\
timeout 1200 "notify-send -u critical 'Power' 'Screen will turn off soon'"\
timeout 1260 "wlr-randr --output eDP-1 --off" resume "wlr-randr --output eDP-1 --on"\