Makes a start on dialer
This commit is contained in:
parent
853f680702
commit
afb6634bec
3 changed files with 147 additions and 0 deletions
32
bin/.bin/modem/dialer
Executable file
32
bin/.bin/modem/dialer
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
prompt=""
|
||||
|
||||
answer=""
|
||||
reject=""
|
||||
|
||||
options="1
|
||||
4
|
||||
7
|
||||
*
|
||||
|
||||
2
|
||||
5
|
||||
8
|
||||
0
|
||||
$answer
|
||||
3
|
||||
6
|
||||
9
|
||||
#
|
||||
# "
|
||||
|
||||
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" = "#" ] && exit
|
||||
#exit
|
||||
prompt+="$input"
|
||||
done
|
|
@ -130,4 +130,5 @@ echo "RECIPIENT: $number" >> $log
|
|||
echo "TIME: $(date)" >> $log
|
||||
echo "----" >> $log
|
||||
cat "$FILE" >> $log
|
||||
# I assume nobody will be sending me messages with null bytes in them
|
||||
printf '\00\n' >> $log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue