X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.awesome_clock;h=1abfd33923eaafb58d25b7c398c57922bb713bd0;hb=b78de2d9aae918f5207ca6aa4421e401d46a333a;hp=2e18ca8e2d8b067aaa345411ea50656019992dcd;hpb=ba69ee0f27a14cf5b35ddf34d60a4c609fe5a335;p=x_base.git diff --git a/.awesome_clock b/.awesome_clock index 2e18ca8..1abfd33 100755 --- a/.awesome_clock +++ b/.awesome_clock @@ -1,7 +1,19 @@ #!/bin/sh +if [ -n "$2" ]; then + TIME_SPEC="$2" +else + TIME_SPEC="%H:%M" +fi; + +if [ -n "$1" ]; then + SCREEN="$1"; +else + SCREEN=0; +fi; + updateClock() { - echo "1 widget_tell tb_date $(date +'%a, %b %d %I:%M%p')" | \ + echo -e "$SCREEN widget_tell mystatusbar tb_date text $(date +' '$TIME_SPEC' ')\n\n" | \ awesome-client }