mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 04:35:59 +01:00
hyprlock: add $FAIL
and ATTEMPTS
to label section (#526)
This commit is contained in:
parent
972ef5b69e
commit
c6f4a5b359
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue