X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=im-status.sh;h=21abf822cd75b63575cfae59cace648cc673313a;hb=HEAD;hp=a73d92fcd21b4bbed12d4938fd6230aaa35b9d14;hpb=57e152b6927daefd4144a0f9beca4b4ea6505d72;p=IM.git diff --git a/im-status.sh b/im-status.sh index a73d92f..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 - gajim-remote change_status "$2" "$3" -else +if [ "`gajim-remote check_gajim_running 2>/dev/null | tail -1`" = True ]; then + gajim-remote change_status "$2" "$title" +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