View Single Post
willi6868's Avatar
Posts: 548 | Thanked: 562 times | Joined on Aug 2011 @ Germany
#836
Originally Posted by coderus View Post
for wazapp:
Code:
#!/bin/sh

reply=""
if $(qdbus | grep org.tgalal.wazapp > /dev/null)
then
	reply=`qdbus org.tgalal.wazapp /org/maemo/contextkit/Wazapp/Online org.maemo.contextkit.Property.Get | sed -n 1p`
fi

case $reply in
online) reply="В сети" ;;
connecting) reply="Подключается" ;;
offline) reply="Не в сети" ;;
*) reply="Закрыт" ;;
esac

echo -n $reply
Can someone tell me please how to change this script to set a color for a seperate status (e.g. : online = green and offline= red)?!

EDIT:

Sorry found the solution!

Last edited by willi6868; 2013-04-29 at 12:24.