View Single Post
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#837
Originally Posted by willi6868 View Post
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)?!
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="{{green}}В сети" ;;
connecting) reply="{{yellow}}Подключается" ;;
offline) reply="{{red}}Не в сети" ;;
*) reply="Закрыт" ;;
esac

echo -n $reply
 

The Following User Says Thank You to slarti For This Useful Post: