mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-12-22 17:49:48 +01:00
hyprlock: add swap_font_color
and explanation (#543)
* hyprlock: add `swap_font_colors` and explanation * typo
This commit is contained in:
parent
0b87f4687a
commit
fb13513b6e
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue