#!/bin/sh
+if [ -n "$2" ]; then
+ TIME_SPEC="$2"
+else
+ TIME_SPEC="%H:%M"
+fi;
+
if [ -n "$1" ]; then
SCREEN="$1";
else
fi;
updateClock() {
- echo -e "$SCREEN widget_tell mystatusbar tb_date text $(date +' %H:%M ')\n\n" | \
+ echo -e "$SCREEN widget_tell mystatusbar tb_date text $(date +' '$TIME_SPEC' ')\n\n" | \
awesome-client
}