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
8
hypr/scripts/lid-close.sh
Executable file
8
hypr/scripts/lid-close.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
pkill -x dim
|
||||
hyprctl switchxkblayout all 0
|
||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
|
||||
hyprlock --no-fade-in &
|
||||
hyprctl dispatch dpms off
|
||||
wait
|
||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||
|
|
@ -2,4 +2,4 @@
|
|||
hyprctl switchxkblayout all 0
|
||||
fcitx5-remote -s keyboard-us-dvorak
|
||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
|
||||
hyprlock && wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||
hyprlock --no-fade-in && wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue