mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Prevent flicker on waking from sleep
This commit is contained in:
@@ -23,9 +23,11 @@ fi
|
||||
# Avoid running screensaver when locked
|
||||
pkill -f org.omarchy.screensaver
|
||||
|
||||
(
|
||||
if [[ ${OMARCHY_LOCK_ONLY:-false} != "true" ]]; then
|
||||
(
|
||||
sleep 3
|
||||
pidof hyprlock >/dev/null || exit 0
|
||||
omarchy-brightness-keyboard off
|
||||
omarchy-brightness-display off
|
||||
) &
|
||||
) &
|
||||
fi
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
general {
|
||||
lock_cmd = omarchy-system-lock # lock screen and 1password
|
||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||
after_sleep_cmd = sleep 1 && hyprctl dispatch dpms on # delay for PAM readiness, then turn on display.
|
||||
before_sleep_cmd = OMARCHY_LOCK_ONLY=true omarchy-system-lock # lock before suspend without scheduling display off.
|
||||
after_sleep_cmd = sleep 1 && omarchy-system-wake # delay for PAM readiness, then turn on display.
|
||||
inhibit_sleep = 3 # wait until screen is locked
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user