]> git.phdru.name Git - IM.git/blobdiff - im-status.sh
Feat(im-status.sh): Check if the programs are running
[IM.git] / im-status.sh
index 75f43b34880df41b9b93ee53046dabcd42a709af..21abf822cd75b63575cfae59cace648cc673313a 100755 (executable)
@@ -33,11 +33,12 @@ case "$LC_CTYPE" in
    ;;
 esac
 
-if [ "`gajim-remote check_gajim_running 2>/dev/null`" = True ]; then
-   gajim-remote change_status "$2" "$3"
-else
-   purple-remote "setstatus?status=$status&message=$status_msg"
-fi &&
-n900-status-wifi "$1" &&
 xtitle "$1" "$2" "$title" &&
-exec skype_status_mood.py "$skype_status" "$3" >/dev/null
+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
+if pgrep skype >/dev/null; then
+   exec skype_status_mood.py "$skype_status" "$3" >/dev/null 2>&1
+fi