Fix Hyprland lock DPMS

This commit is contained in:
Fabio Scotto di Santolo
2026-06-07 18:46:21 +02:00
parent bf754fc7d2
commit b4d5a2b1ea
3 changed files with 16 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Lock the session, then power off outputs only if the lock is still active.
set -eu
lock_delay="${HYPRLOCK_DPMS_DELAY:-30}"
loginctl lock-session
(
sleep "$lock_delay"
pidof hyprlock >/dev/null 2>&1 || exit 0
hyprctl dispatch dpms off
) >/tmp/hyprlock-dpms.log 2>&1 &