hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Input box is not drawn when disconnecting monitor

Open defr0std opened this issue 1 year ago • 2 comments

Repro:

  1. Have two monitors connected, in my example:
monitor=eDP-1,2400x1500@60,0x1000,1.25
monitor=DP-3,3840x2160@60,1920x0,1 
  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
}
  1. Lock the screen while both monitors are connected.
  2. Disconnect one monitor.
  3. 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 :)

defr0std avatar Mar 11 '24 20:03 defr0std

Does this still happen?

PointerDilemma avatar Jan 01 '25 10:01 PointerDilemma

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...

defr0std avatar Jan 01 '25 11:01 defr0std