From 46a02ee1d9885fc3c44889742cc512486a0a6a90 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 22 Apr 2020 19:38:11 +0530 Subject: massive changes --- bin/.local/bin/statusbar | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/.local/bin/statusbar b/bin/.local/bin/statusbar index 020429e..31f9be0 100755 --- a/bin/.local/bin/statusbar +++ b/bin/.local/bin/statusbar @@ -14,12 +14,16 @@ bat() { } dte() { - dte="$(date +"%A, %B %d")" - time="$(date +"%l:%M %p")" - echo -e "+@fg=1;date+@fg=0; $dte +@fg=1;time+@fg=0; $time" + dte=$(date +"%A, %B %d") + echo -e "+@fg=1;date+@fg=0; $dte " +} + +tie() { + tme=$(date +"%I:%M %p") + echo -e "+@fg=1;time+@fg=0; $tme " } while :; do - echo "$(vol) $(bat) $(dte)" + echo "$(vol) $(bat) $(tie) $(dte)" sleep 2 done -- cgit v1.2.3