From ff29e1d804ae683ebda770421d0fc118e101be1a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 21 Feb 2024 14:11:41 +0000 Subject: [PATCH] hyprlock: add commands to label --- pages/Hypr Ecosystem/hyprlock.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/Hypr Ecosystem/hyprlock.md b/pages/Hypr Ecosystem/hyprlock.md index 26a86be..ba9f9b3 100644 --- a/pages/Hypr Ecosystem/hyprlock.md +++ b/pages/Hypr Ecosystem/hyprlock.md @@ -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 "$(date)" +``` +Worth noting: + - `update:` - time is in ms. + - Variables seen above are parsed _before_ the command is ran. + +