hyprlock: add `$FAIL` and `ATTEMPTS` to label section (#526)

This commit is contained in:
bvr-yr 2024-03-14 00:25:20 +03:00 committed by GitHub
parent 972ef5b69e
commit c6f4a5b359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,8 @@ label {
Available variables for `text`:
- `$USER` - username
- `$TIME` - current time (e.g. `13:37`)
- `$FAIL` - last pam fail reason
- `$ATTEMPTS` - failed attempts
`text` also supports launching commands, for example:
```ini
@ -146,6 +148,7 @@ Worth noting:
- `update:` - time is in ms.
- label can be forcefully updated by specifying `update:<time>:1` or `update:<time>:true` and sending `SIGUSR2` to hyprlock. `<time>` can be `0` in this case
- Variables seen above are parsed _before_ the command is ran.
- `$ATTEMPTS[<string>]` format can be used to show `<string>` when there are no failed attempts. You can use pango-markup here. `<string>` can be empty to hide.
- **do not** run commands that never exit. This will hang the AsyncResourceGatherer and you won't have a good time.