hyprlock: add general:pam_module and $PROMPT variable for input:place… (#582)

* hyprlock: add general:pam_module and $PROMPT variable for input:placeholder_text

* hyprlock: add $PROMPT variable for labels
This commit is contained in:
Maximilian Seidler 2024-04-11 16:07:27 +02:00 committed by GitHub
parent c1026d33f5
commit 1321e3fc8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,7 @@ Variables in the `general` category:
| no_fade_in | disables the fadein animation | bool | false |
| no_fade_out | disables the fadeout animation | bool | false |
| ignore_empty_input | skips validation when empty password is provided | bool | false |
| pam_module | sets the pam module used for authentication. If the module isn't found in `/etc/pam.d`, "su" will be used as a fallback | str | hyprlock |
## Keyboard Shortcuts and Actions
@ -195,6 +196,9 @@ Behaviour of `swap_font_color` is as follows:
{{< /callout >}}
Available variables for `placeholder_text`:
- `$PROMPT` - prompt text provided by pam. Usually this will be "Password: ", but it depends on your pam configuration.
Available variables for `fail_text`:
- `$FAIL` - pam fail reason
- `$ATTEMPTS` - number of failed authentication attempts
@ -224,6 +228,7 @@ Available variables for `text`:
- `$USER` - username (e.g. linux-user)
- `$DESC` - user description (e.g. Linux User)
- `$TIME` - current time (e.g. `13:37`)
- `$PROMPT` - last pam prompt
- `$FAIL` - last pam fail reason
- `$ATTEMPTS` - failed attempts
- `$LAYOUT` - current keyboard layout