hyprlock: add commands to label

This commit is contained in:
Vaxry 2024-02-21 14:11:41 +00:00
parent 53ab3d757f
commit ff29e1d804
1 changed files with 10 additions and 0 deletions

View File

@ -95,3 +95,13 @@ label {
Available variables for `text`:
- `$USER` - username
- `$TIME` - current time (e.g. `13:37`)
`text` also supports launching commands, for example:
```ini
text = cmd[update:1000] echo "<span foreground='##ff2222'>$(date)</span>"
```
Worth noting:
- `update:` - time is in ms.
- Variables seen above are parsed _before_ the command is ran.