From e8136e96666c0197cd83ceb8b9282e95c3f10625 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 14 Mar 2024 01:03:05 +0100 Subject: [PATCH] Show fail msg & attempt amount with labels --- home/.config/hypr/hyprlock.conf | 36 +++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/home/.config/hypr/hyprlock.conf b/home/.config/hypr/hyprlock.conf index 6b117f0..dcf4631 100644 --- a/home/.config/hypr/hyprlock.conf +++ b/home/.config/hypr/hyprlock.conf @@ -35,11 +35,11 @@ input-field { check_color = rgb(204, -136, 34) # override outer_color while checking the pw (could take a while sometimes - pam lockouts) fail_color = rgb(204, 34, 34) # override outer_color and fail message color if auth failed fail_transition = 500 # transition time in ms between normal outer_color and fail_color - fail_text = Logged $ATTEMPTS failure(s): $FAIL + fail_text = # Leave this empty (amt of attempts and fail reason shown with labels) hide_input = true fade_on_empty = false - placeholder_text = ‍# There is a zero-width joiner character here (U+200D) since fail_text doesn't work with this empty + placeholder_text = # Leave this empty position = 0, 0 halign = center @@ -86,6 +86,38 @@ label { # ### OTHER LABELS ### # #################### +# Failed attempts count +label { + text = Logged $ATTEMPTS[0] failure(s) + color = rgba(153, 153, 153, 1.0) # gray + font_size = 14 + font_family = Noto Sans + + shadow_passes = 1 + shadow_size = 1.2 + shadow_boost = 1.0 + + position = 0, -200 + halign = center + valign = center +} + +# Failed attempts count +label { + text = $FAIL + color = rgba(255, 34, 34, 1.0) # red + font_size = 14 + font_family = Noto Sans + + shadow_passes = 1 + shadow_size = 1.2 + shadow_boost = 1.0 + + position = 0, -230 + halign = center + valign = center +} + # Splash text label { text = Session Locked