Make sxmo_modemtext killeable with gesture

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
Stacy Harper 2021-05-23 15:37:29 +02:00 committed by Maarten van Gompel
parent b4686caa9c
commit 98bd4b2f0d

View file

@ -64,7 +64,7 @@ sendtextmenu() {
CONFIRM="$(
printf %b "$icon_edt Edit\n$icon_snd Send\n$icon_cls Cancel" |
dmenu -c -idx 1 -p "Confirm" -l 10
)"
)" || exit
if echo "$CONFIRM" | grep -q "Send"; then
(sxmo_modemsendsms.sh "$NUMBER" - < "$DRAFT") && \
rm "$DRAFT" && \
@ -94,7 +94,7 @@ readtextmenu() {
printf %b "$CONTACT" | xargs -IL echo "L logfile"
done
)"
PICKED="$(printf %b "$ENTRIES" | dmenu -p Texts -c -l 10 -i)"
PICKED="$(printf %b "$ENTRIES" | dmenu -p Texts -c -l 10 -i)" || exit
if echo "$PICKED" | grep "Close Menu"; then
exit 1