fix: lock screen on lid close without desktop flash on open
- Add lid-close.sh: starts hyprlock in background and immediately cuts the display via dpms off, so the display is dark while hyprlock renders - William.conf: bind lid close to lid-close.sh; bind lid open to kill dim and turn display back on - lock.sh: pass --no-fade-in to hyprlock - hyprlock.conf: disable fadeOut animation - hypridle.conf: add inhibit_sleep = 3 and use loginctl lock-session
This commit is contained in:
parent
0f64cf7137
commit
11d2d51544
4 changed files with 16 additions and 10 deletions
|
|
@ -1,13 +1,7 @@
|
|||
general {
|
||||
# Define the lock command for hypridle
|
||||
# This is used whenever hypridle or listeners need to lock the screen
|
||||
lock_cmd = pidof hyprlock || hyprlock
|
||||
|
||||
# Runs before system suspend (safety net if you manually suspend)
|
||||
# On a desktop, you can remove this if you never suspend manually
|
||||
before_sleep_cmd = ~/.config/hypr/scripts/lock.sh
|
||||
|
||||
# Restore screen after sleep
|
||||
inhibit_sleep = 3
|
||||
lock_cmd = pidof hyprlock || ~/.config/hypr/scripts/lock.sh
|
||||
before_sleep_cmd = loginctl lock-session
|
||||
after_sleep_cmd = hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue