You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
436 B

#!/usr/bin/env bash
options="End All Calls
Check for Calls
Check for Texts
Dialer"
while true ; do
choice="$(echo "$options" | trofi)"
case "$choice" in
"End All Calls")
modem="$(mmcli -L | grep -oE 'Modem\/[0-9]+' | head -n 1 | cut -d'/' -f2)"
mmcli -m "$modem" --voice-hangup-all
break ;;
"Check for Calls") checkCall ;;
"Check for Texts") checkSMS ;;
"Dialer") (dialer &); break ;;
"Back") break;;
esac
done