Files
dotfiles/sway/idle.yaml
T
2025-09-03 14:23:55 +02:00

30 lines
853 B
YAML

---
debug: true
wait: false
timeouts:
# idle_timeout
- timeout: 240
command: brightnessctl -s && brightnessctl set 10
resume: brightnessctl -r
# locking_timeout
- timeout: 1200
command: swaymsg exec \$locking
# screen_timeout
- timeout: 2400
command: swaymsg "output * power off"
resume: swaymsg "output * power on"
# dpms_timeout
# - timeout: 3600
# command: swaymsg "output * dpms off"
# resume: swaymsg "output * dpms on"
# sleep_timeout_bat
# - timeout: 900
# command: acpi --ac-adapter | grep -v 'on-line' && systemctl sleep
# sleep_timeout_ac
# - timeout: 3600
# command: acpi --ac-adapter | grep 'on-line' && systemctl sleep
before-sleep: swaymsg exec \$locking
after-resume: swaymsg "output * dpms on", exec "systemctl restart --user mako"
lock: swaymsg exec \$locking
idlehint: '240'