Dotfiles/bin/.bin/modem/dialer
Jonathan Hodgson 1ab519531c Initial work on modem functionality
Including, checking for incoming calls, missed calls, sms and the start
of a dialer using rofi
2021-03-02 18:35:57 +00:00

33 lines
361 B
Bash
Executable file

#!/usr/bin/env bash
export DISPLAY=:0.0
prompt=""
answer=""
reject=""
options="1
4
7
*
2
5
8
0
$answer
3
6
9
#
X"
while true; do
#notify-send "$prompt"
input="$(echo "$options" |
rofi -dmenu -p "$prompt" -theme themes/dialer.rasi \
-me-select-entry '' -me-accept-entry MousePrimary)"
[ "$input" = "X" ] && exit
#exit
prompt+="$input"
done