niri: move back to swayidle

This commit is contained in:
J. Fernando Sánchez
2026-06-16 14:06:00 +02:00
parent 29251579e0
commit f7f191c720
2 changed files with 33 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
# 1. Dim the screens first (after 4.5 minutes)
timeout 270 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors'
# 2. Lock the screen (after 5 minutes)
timeout 300 'hyprlock'
# 3. Turn off screens immediately if already locked (failsafe)
timeout 310 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors'
# 4. Lock immediately before the computer goes to sleep/suspend
before-sleep 'hyprlock'