hyprlock
hyprlock copied to clipboard
Input box is not drawn when disconnecting monitor
Repro:
- Have two monitors connected, in my example:
monitor=eDP-1,2400x1500@60,0x1000,1.25
monitor=DP-3,3840x2160@60,1920x0,1
- Add an input field to the hyprlock config, in my example:
input-field {
monitor =
size = 400, 50
outline_thickness = 3
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
outer_color = rgb($nord_frost_arctic_ocean)
inner_color = rgb($nord_snow_storm_origin)
font_color = rgb($nord_polar_night_origin)
fail_color = rgb($nord_aurora_red)
fail_text = $FAIL <b>($ATTEMPTS)</b> # can be set to empty
fade_on_empty = true
placeholder_text = Enter password # Text rendered in the input box when it's empty.
hide_input = false
position = 0, 100
halign = center
valign = bottom
}
- Lock the screen while both monitors are connected.
- Disconnect one monitor.
- Try to unlock.
The input box does not appear anymore, unlocking is not possible. When reconnecting the second monitor, everything works fine.
This scenario occurs when using an external monitor with a laptop. If the screen gets locked with hypridle, and you grab the laptop to go, you can't unlock it anymore until you connect to the second monitor :)
Does this still happen?
I haven't got a chance to test it on the latest version. Since March'24 there appeared so many dependencies to hyprlock that I have troubles compiling/installing them all...