From a7c1fd5df8be7fd5245551fd1931d243970d2dfe Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 7 Apr 2020 00:43:03 +0300 Subject: [PATCH] Feat(im-status.sh): Check if the programs are running --- im-status.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/im-status.sh b/im-status.sh index 8d5685b..21abf82 100755 --- a/im-status.sh +++ b/im-status.sh @@ -36,7 +36,9 @@ esac xtitle "$1" "$2" "$title" && 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 -- 2.39.2