hyprlock: add swap_font_color and explanation (#543)

* hyprlock: add `swap_font_colors` and explanation

* typo
This commit is contained in:
bvr-yr 2024-03-19 05:47:16 +03:00 committed by GitHub
parent 0b87f4687a
commit fb13513b6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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