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