summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-time
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dwmbar/dwmb-time')
-rwxr-xr-x.local/bin/dwmbar/dwmb-time5
1 files changed, 4 insertions, 1 deletions
diff --git a/.local/bin/dwmbar/dwmb-time b/.local/bin/dwmbar/dwmb-time
index bbd6585..15046a3 100755
--- a/.local/bin/dwmbar/dwmb-time
+++ b/.local/bin/dwmbar/dwmb-time
@@ -1,3 +1,6 @@
#!/bin/sh
-date +"  %H:%M "
+text="$(date +" %H:%M")"
+
+printf '{ "text": "%s", "class": "block" }\n' "$text"
+