X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=im-status.sh;h=21abf822cd75b63575cfae59cace648cc673313a;hb=a7c1fd5df8be7fd5245551fd1931d243970d2dfe;hp=f2e5baafeae2310b9a9b9a609f62ce9d90ab8791;hpb=4fff6478328164030f88dbfbb3779c5a2b6c08eb;p=IM.git diff --git a/im-status.sh b/im-status.sh index f2e5baa..21abf82 100755 --- a/im-status.sh +++ b/im-status.sh @@ -33,11 +33,12 @@ case "$LC_CTYPE" in ;; esac -n900-status-wifi "$1" && xtitle "$1" "$2" "$title" && -if [ "`gajim-remote check_gajim_running 2>/dev/null`" = True ]; then +if [ "`gajim-remote check_gajim_running 2>/dev/null | tail -1`" = True ]; then gajim-remote change_status "$2" "$title" -else +elif pgrep pidgin >/dev/null; then purple-remote "setstatus?status=$status&message=$status_msg" -fi && -exec skype_status_mood.py "$skype_status" "$3" >/dev/null 2>&1 +fi +if pgrep skype >/dev/null; then + exec skype_status_mood.py "$skype_status" "$3" >/dev/null 2>&1 +fi