#!/bin/bash source "$HOME/.blickstick_utilities" APP="zoom.us" OP="osascript -e 'tell application \"System Events\" to (name of processes) contains \"$APP\"'" FIREFOX_TABS="firefox-tabs" is_running() { TABS="$($FIREFOX_TABS | grep 'meet.google.com')" test "$(eval "$OP")" = "true" || test -n "$TABS" } while true; do if ! blink_is_busy; then if is_running; then if ! blink_is_red; then blink_set_color red fi else if ! blink_is_green; then blink_set_color green fi fi fi sleep 1 done