From fb13513b6ec439e366a308b7cc28dff7a986c1c5 Mon Sep 17 00:00:00 2001 From: bvr-yr <130279855+bvr-yr@users.noreply.github.com> Date: Tue, 19 Mar 2024 05:47:16 +0300 Subject: [PATCH] hyprlock: add `swap_font_color` and explanation (#543) * hyprlock: add `swap_font_colors` and explanation * typo --- pages/Hypr Ecosystem/hyprlock.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pages/Hypr Ecosystem/hyprlock.md b/pages/Hypr Ecosystem/hyprlock.md index 8bf885d..3ddd8fb 100644 --- a/pages/Hypr Ecosystem/hyprlock.md +++ b/pages/Hypr Ecosystem/hyprlock.md @@ -139,6 +139,7 @@ input-field { numlock_color = -1 bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) invert_numlock = false # change color if numlock is off + swap_font_color = false # see below position = 0, -20 halign = center @@ -146,6 +147,18 @@ input-field { } ``` +{{< callout type=info >}} + +#### Colors information + +When `outline_thickness` set to `0`, color of the inner box will be changed instead of outer. + +Behaviour of `swap_font_color` is as follows: + - `outline_thickness` is `0`: if set, font color will be swapped with inner one on color change events (e.g. Caps-lock on or password check). + - `outline_thickness` is not `0`: if set, font and inner colors will be swapped on password check and authentication failure. + +{{< /callout >}} + Available variables for `fail_text`: - `$FAIL` - pam fail reason - `$ATTEMPTS` - number of failed authentication attempts