#!/bin/sh
#
while true
do
if [ -S ~/.awesome_ctl.0 ]; then
while true
do
# See 'man date' to see the possible replacements for the % fields.
# uncomment the following line for use with awesome 2.3
echo "0 widget_tell mystatusbar remind text " " `remind '-kecho %s'`"
echo "" # an empty line flushes data inside awesome
sleep 1
done | awesome-client
else
sleep 1
fi
done