hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
604 stars 52 forks source link

Hyprland freezes if Hyprlock is started via Hyprland key binding #259

Open DevilsBestFriend opened 3 months ago

DevilsBestFriend commented 3 months ago

I use Arch btw. (If it has something to do with that) If I start Hyprlock with a Terminal it resumes normally but if I use a Hyprland shortcut Hyprland freezes and I have to open and close a Window (Terminal) for Hyprland to resume normally.

vaxerski commented 3 months ago

never seen that. Try adding a sleep 1 && before the hyprlock command?

DevilsBestFriend commented 3 months ago

Doesn't change anything. The problem is Hyprland does not recognize any open windows after resuming from Hyprlock Edit: If Hyprland doesn't recognize opened windows after resume and I lunch Hyprlock again it recognizes open windows (with key binding).

vaxerski commented 3 months ago

uhhh... are you perhaps running without a config?

I feel like you are and the lock just runs without a config aka. doesn't render anything. Type your password and hit enter

Mr-Ples commented 1 month ago

i have this script:

#!/bin/bash
playerctl -a pause
pkill -9 -f hyprlock
hyprlock --immediate --verbose >> ~/logs/hyprlock.log 2>&1

and i run it with a keybind: bind = $mainMod, L, exec, ~/scripts/lock_and_mute.sh

and it works fine, on arch btw

try using a script