sxmo-utils/scripts/modem/sxmo_modemmonitortoggle.sh
2020-11-20 18:17:57 +01:00

14 lines
352 B
Bash
Executable file

#!/usr/bin/env sh
if pgrep -f sxmo_modemmonitor.sh; then
pgrep -f sxmo_modemmonitor.sh | grep -Ev "^${$}$" | xargs -IP kill -TERM P
else
sxmo_modemmonitor.sh &
fi
NOTIFDIR="$XDG_CONFIG_HOME"/sxmo/notifications
rm "$NOTIFDIR"/incomingcall*
# E.g. wait until process killed or started -- maybe there's a better way..
sleep 1
sxmo_statusbarupdate.sh