custom dzen2 statusbar notification shell script reports "status_command exited unexpectedly"
Hello.
I use a shell script to display the date and such things in my statusbar. I cut out irrelevant parts of both the i3 config file and the shellscript. When i3 is started, the statusbar displays "Error: status_command exited unexpectedly (exit 0)" along with the dzen2 bar. How can i fix that?
My i3 config contains:
bar {
status_command sh ~/.i3/statusbar.sh
}
statusbar.sh:
#!/bin/sh
DZEN_FG="#A0A0A0"
DZEN_BG="#1f1f1f"
HEIGHT=20
WIDTH=300
X=1300
Y=2000
DZEN="dzen2 -x $X -y $Y -w $WIDTH -h $HEIGHT -ta right -bg $DZEN_BG -fg $DZEN_FG"
while true
do
echo "`date`"
done | $DZEN &