Dotfiles/bin/.bin/dmenu/menu-phone
Jonathan Hodgson 43f0dd09bc Many changes including introduction to menu system
THe main addition here is the menu system that is used to contoll the
phone. THere are also some small helper scripts for calls etc.
2021-04-04 16:04:22 +01:00

21 lines
436 B
Bash
Executable file

#!/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