mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 04:35:59 +01:00
hyprlock: add commands to label
This commit is contained in:
parent
53ab3d757f
commit
ff29e1d804
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue