make dmenus with contact names case insensitive

Signed-off-by: Miles Alan <m@milesalan.com>
master
Anjandev Momi 4 years ago committed by Miles Alan
parent 63d5ec3f7d
commit 07119a7085
  1. 2
      scripts/modem/sxmo_modemdial.sh
  2. 4
      scripts/modem/sxmo_modemtext.sh

@ -20,7 +20,7 @@ dialmenu() {
NUMBER="$( NUMBER="$(
printf %b "Close Menu\n$CONTACTS" | printf %b "Close Menu\n$CONTACTS" |
grep . | grep . |
sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 sxmo_dmenu_with_kb.sh -l 10 -p Number -c -fn Terminus-20 -i
)" )"
echo "$NUMBER" | grep "Close Menu" && kill -9 0 echo "$NUMBER" | grep "Close Menu" && kill -9 0

@ -50,7 +50,7 @@ sendtextmenu() {
NUMBER="$( NUMBER="$(
printf %b "\nCancel\n$(sxmo_contacts.sh)" | printf %b "\nCancel\n$(sxmo_contacts.sh)" |
awk NF | awk NF |
sxmo_dmenu_with_kb.sh -p "Number" -fn "Terminus-20" -l 10 -c | sxmo_dmenu_with_kb.sh -p "Number" -fn "Terminus-20" -l 10 -c -i |
cut -d: -f1 | cut -d: -f1 |
tr -d -- '-+ ' tr -d -- '-+ '
)" )"
@ -87,7 +87,7 @@ main() {
sxmo_contacts.sh | grep -m1 "$NUM" | xargs -IL echo "L logfile" sxmo_contacts.sh | grep -m1 "$NUM" | xargs -IL echo "L logfile"
done done
)" )"
CONTACTIDANDNUM="$(printf %b "$ENTRIES" | dmenu -p Texts -c -fn Terminus-20 -l 10)" CONTACTIDANDNUM="$(printf %b "$ENTRIES" | dmenu -p Texts -c -fn Terminus-20 -l 10 -i)"
echo "$CONTACTIDANDNUM" | grep "Close Menu" && exit 1 echo "$CONTACTIDANDNUM" | grep "Close Menu" && exit 1
echo "$CONTACTIDANDNUM" | grep "Send a Text" && sendtextmenu && exit 1 echo "$CONTACTIDANDNUM" | grep "Send a Text" && sendtextmenu && exit 1
tailtextlog "$(echo "$CONTACTIDANDNUM" | cut -d: -f1)" tailtextlog "$(echo "$CONTACTIDANDNUM" | cut -d: -f1)"

Loading…
Cancel
Save