]> git.donarmstrong.com Git - x_base.git/blob - .awesome_clock
e3b778933d07a0935c2bf26ca4616b22551ce334
[x_base.git] / .awesome_clock
1 #!/bin/sh
2
3 if [ -n "$1" ]; then
4     SCREEN="$1";
5 else
6     SCREEN=0;
7 fi;
8
9 updateClock() {
10   echo -e "$SCREEN widget_tell mystatusbar tb_date text $(date +' %H:%M ')\n\n" | \
11       awesome-client
12 }
13
14 while true; do
15   updateClock
16   sleep 10;
17 done