~mil/sxmo-utils

sxmo-utils/scripts/modem/sxmo_modemdial.sh -rwxr-xr-x 1.8 KiB
SWMO - SXMO over Wayland

This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Fix remaining issue with states cause of dangling event files

We also have to remove them on outgoing call. We use find instead of rm
with a wildcard cause wildcard look not expanded here.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Add a dsubmenu to reply/call on SMS windows

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Removed explicit font from most dmenu calls, dmenu font is read from Xresources now and kept as uniform as possible
Sane message when terminating call with unknown number and more verbose output to stderr from modem scripts
shellcheck fix: use -n instead of ! -z
no need for number validation when cancelling dialer
Do not display text only numbers as options when dialing or composing new texts

Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Fixed user log out when selecting "Close Menu" in dialer

See issue:

https://todo.sr.ht/~mil/sxmo-tickets/117
sxmo_modemdial.sh: quiet the grep

When I try to dial a call from 'more contacts', I get

Attempting to dial: +19362396134
Starting call with CALLID: 0
error: invalid call string specified: 'More contacts
0'

This is because dialmenu() is getting an extra 'More contacts'
prepended to the callid it returns on stdout.  Make the grep
which is causing that quiet using -q.

I'm not sure why this isn't hitting everyone else.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Add more contacts choice to contact list

The dialer only included recent callers, but there was no way to access
the full contact list (contacts.tsv). I added a "more contacts" options
that calls sxmo_contacts --all, providing an alphabetically sorted list
of all your contacts. It also works for the texting menu.

This is a cleaned up version of an earlier patch by Maarten van Gompel.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Use sxmo_statusbarupdate.sh script instead of direct calls duplicated logic
Use USR1 signal instead of update file for updating statusbar
make dmenus with contact names case insensitive

Signed-off-by: Miles Alan <m@milesalan.com>
SIGKILL on close menu in dialer
Only show entries to text for directories that exist; fix number bugs
Remove +1 stripping from numbers in modem scripts

Note prefix stripping was unreliable because any +1XX number would break things.
The advice should be to always dial with +1 / international prefixes and store
contacts in your contacts.tsv with international codes; this way we avoid any
duplicate errors since we can be assured things in mmcli always come back w/
international prefixing automatically.
add contacts.tsv integration to call and text apps

Signed-off-by: Miles Alan <m@milesalan.com>
Pull dialing functionality into seperate script; allows in-call check to be valid