X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=im-status.sh;h=21abf822cd75b63575cfae59cace648cc673313a;hb=refs%2Fheads%2Fmaster;hp=f2febc36854c4e778a92b2006cbe8a687a1cf8d5;hpb=6e6e52a7917b2d246199737f05815a4b53f645c5;p=IM.git diff --git a/im-status.sh b/im-status.sh index f2febc3..21abf82 100755 --- a/im-status.sh +++ b/im-status.sh @@ -34,9 +34,11 @@ case "$LC_CTYPE" in esac 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 +if pgrep skype >/dev/null; then + exec skype_status_mood.py "$skype_status" "$3" >/dev/null 2>&1 +fi