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}") ignored_args+=(-i "${(q)name}")
done done
swayidle -w -C /dev/null \ swayidle -w -C /dev/null \
# after-resume "${(q)RESET_SAFEEYES}" \
timeout 15 "${(q)ENABLE_DISPLAYS} -d ${ignored_args}" \ timeout 15 "${(q)ENABLE_DISPLAYS} -d ${ignored_args}" \
resume "${(q)ENABLE_DISPLAYS} {$ignored_args}" & resume "${(q)ENABLE_DISPLAYS} {$ignored_args}" &
# after-resume "${(q)RESET_SAFEEYES}" \
swayidle_pid="${!}" swayidle_pid="${!}"
else else
swayidle -w -C /dev/null \ swayidle -w -C /dev/null \
# after-resume "${(q)RESET_SAFEEYES}" \
timeout 15 "systemctl sleep" & timeout 15 "systemctl sleep" &
# after-resume "${(q)RESET_SAFEEYES}" \
swayidle_pid="${!}" swayidle_pid="${!}"
fi fi
swaylock ${empty_flag} ${img_flags} swaylock ${empty_flag} ${img_flags}