fix: remove dim step that leaks orphaned layer surfaces
dim creates a wlr-layer-shell surface that Hyprland never cleans up when the process exits — leaves an opaque full-screen overlay (pid=-1) covering the entire display until the layer tree is rebuilt. Removing step 1 (dim) from hypridle prevents future occurrences. unstick-display.sh now restarts waybar to force a layer tree rebuild as a recovery measure.
This commit is contained in:
parent
7d2a0100e9
commit
7e9bf498ff
2 changed files with 5 additions and 10 deletions
|
|
@ -8,16 +8,7 @@ general {
|
|||
after_sleep_cmd = hyprctl dispatch dpms off && sleep 1 && hyprctl dispatch dpms on
|
||||
}
|
||||
|
||||
# Step 1: Dim monitor at 115 sec idle (warning that it will lock soon)
|
||||
listener {
|
||||
timeout = 115
|
||||
# Only dims the screen, does not lock yet
|
||||
# This shows you that lock will happen soon
|
||||
on-timeout = dim
|
||||
on-resume = pkill -x dim
|
||||
}
|
||||
|
||||
# Step 2: Lock screen at 2 min idle
|
||||
# Step 1: Lock screen at 2 min idle
|
||||
listener {
|
||||
timeout = 120
|
||||
on-timeout = ~/.config/hypr/scripts/lock.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue