hyprwm / hyprlock

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

Disable fade in/out when typing? #355

Open arosain opened 3 months ago

arosain commented 3 months ago

Hi,

Is there a way to disable the fade in/out effect when typing inside the input?

My configuration file:

general {
  hide_cursor = true
  no_fade_in = true
  no_fade_out = true
  ignore_empty_input = true
}

background {
  monitor =
  path =
  color = rgb(0, 0, 0)
  blur = 0
}

input-field {
    monitor =
    size = 200, 50
    outline_thickness = 3
    dots_size = 0.2
    dots_spacing = 0.5
    dots_center = false
    dots_rounding = -2
    outer_color = rgb(0, 0, 0)
    inner_color = rgb(255, 255, 255)
    font_color = rgb(0, 0, 0)
    fade_on_empty = false
    fade_timeout = 0
    placeholder_text = ...
    hide_input = false
    rounding = 0
    check_color = rgb(0, 0, 0)
    fail_color = rgb(255, 80, 80)
    fail_text = Wrong password
    fail_transition = 0
    capslock_color = -1
    numlock_color = -1
    bothlock_color = -1
    invert_numlock = false
    swap_font_color = false

    position = 0, -20
    halign = center
    valign = center
}

label {
  monitor =
  text = cmd[update:1000] echo "$(date -d --now +'%m/%d/%Y (%A) - %I:%M %p')" - $ATTEMPTS
  text_align = center
  font-size = 22

  position = 0, 30
  halign = center
  valign = center
}

Btw: thank's for the tool (contributors and admins), really easy to use.

vaxerski commented 3 months ago

you mean have it always visible or just have the animation disabled?

arosain commented 3 months ago

When I type in my password, dots appear, just like in any password input (dots_size = 0.2).

But when the dot appears, there's a fade, and when I remove it too (backspace), there's a fade.

How can I remove this fade (if possible)?

vaxerski commented 3 months ago

don't think you can atm