1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-08-04 16:07:46 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
tiyn
3aafdd54f7 swayidle: improved script - added screen dim and off 2025-07-11 02:58:43 +02:00
tiyn
2c6f888ed7 swayidle: improved script - added screen dim and off 2025-07-11 02:36:42 +02:00

View File

@ -1,8 +1,10 @@
#!/bin/sh #!/bin/sh
exec swayidle -w \ exec swayidle -w \
timeout 600 "notify-send -u critical 'Power' 'Laptop will suspend in 20 minutes!'"\ timeout 600 "brightnessctl -s set 0%" resume "brightnessctl -r"\
timeout 1200 "notify-send -u critical 'Power' 'Laptop will suspend in 10 minutes!'"\ timeout 1200 "notify-send -u critical 'Power' 'Laptop will suspend in 10 minutes!'"\
timeout 1500 "notify-send -u critical 'Power' 'Laptop will suspend in 5 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"\
timeout 1500 "notify-send -u critical 'Power' 'System will suspend in 5 minutes!'"\
timeout 1740 "notify-send -u critical 'Power' 'System will suspend in 1 minute!'"\ timeout 1740 "notify-send -u critical 'Power' 'System will suspend in 1 minute!'"\
timeout 1790 "notify-send -u critical 'Power' 'System will suspend in 10 seconds!'"\ timeout 1790 "notify-send -u critical 'Power' 'System will suspend in 10 seconds!'"\
timeout 1795 "notify-send -u critical 'Power' 'System will suspend in 5 seconds!'"\ timeout 1795 "notify-send -u critical 'Power' 'System will suspend in 5 seconds!'"\