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)?!
#!/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