Heya,
with my scripts cleanup I accidentally fsckd up the date/time display
in the panel. Seems like nobody noticed :P
The problem is the 'read -ra' only accepts tabs as field delimiters
(so somebody could have a tag with a space in it or whatever), but the
date line still used a space.
The attached patch fixes this by using a tab there as well.
Sorry for that!
Florian
--
() ascii ribbon campaign - stop html mail www.asciiribbon.org
/\ www.the-compiler.org | I love long mails http://email.is-not-s.ms/
At many levels, Perl is a "diagonal" language. -- Larry Wall in
<199709021854 _dot_ LAA12794 _at_ wall _dot_ org>
From d06a70f8583260c5596b9fa00e8393b1c75ca446 Mon Sep 17 00:00:00 2001
From: Florian Bruhin <git _at_ the _minus_ compiler _dot_ org>
Date: Tue, 8 Oct 2013 22:05:24 +0200
Subject: [PATCH] Fix date display in panel
---
share/panel.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/panel.sh b/share/panel.sh
index 93cf1c9..02a925d 100755
--- a/share/panel.sh
+++ b/share/panel.sh
@@ -57,7 +57,7 @@ hc pad $monitor $panel_height
# events:
#mpc idleloop player &
while true ; do
- date +'date ^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'
+ date +$'date\t^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'
sleep 1 || break
done > >(uniq_linebuffered) &
childpid=$!
--
1.8.4
Attachment:
pgphmTC5QP4Rq.pgp
Description: PGP signature