Fix swayidle-lock-screen

This commit is contained in:
2026-02-06 06:14:12 -08:00
parent bfe2a50523
commit 5703308149

View File

@ -33,14 +33,14 @@ function run {
ignored_args+=(-i "${(q)name}")
done
swayidle -w -C /dev/null \
# after-resume "${(q)RESET_SAFEEYES}" \
timeout 15 "${(q)ENABLE_DISPLAYS} -d ${ignored_args}" \
resume "${(q)ENABLE_DISPLAYS} {$ignored_args}" &
# after-resume "${(q)RESET_SAFEEYES}" \
swayidle_pid="${!}"
else
swayidle -w -C /dev/null \
# after-resume "${(q)RESET_SAFEEYES}" \
timeout 15 "systemctl sleep" &
# after-resume "${(q)RESET_SAFEEYES}" \
swayidle_pid="${!}"
fi
swaylock ${empty_flag} ${img_flags}