From 53585939aeab1b90577eeab5c97b0a98b74079bd Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 19 Sep 2023 10:08:25 +0400 Subject: [PATCH] clock --- config/dwmbar/bar.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/dwmbar/bar.sh b/config/dwmbar/bar.sh index 1fa71785..443b21ae 100755 --- a/config/dwmbar/bar.sh +++ b/config/dwmbar/bar.sh @@ -20,7 +20,12 @@ audio() { fi } +clock() { + printf "^c$black^ ^b$darkblue^ " + printf "^c$black^^b$blue^ $(date '+%H:%M') " +} + while true; do - xsetroot -name " $(audio) $(battery) " + xsetroot -name " $(clock) $(audio) $(battery) " sleep 1 done