Commit graph

18 commits

Author SHA1 Message Date
Stacy Harper
8a27933c47 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>
2021-08-22 13:23:22 +02:00
Stacy Harper
574509115c
Prevent incompatible contact number to be added
In the last commits I added the country code in the early stages of the
phone numbe validation.

I think it was a mistake as it make ad non prefixed phone number to be
added in the tsv file.

I revert this part here.
2021-06-18 17:45:46 +02:00
Stacy Harper
af35294af6
Do not enforce the matching recent number
Prefer the typed value over the first matching one.
2021-06-18 10:43:20 +02:00
Stacy Harper
c928097412
Allow the user to force an invalid phone number
It is usefull for some provider dedicated short phone numbers as 666,
123 or whatever.
2021-06-18 10:43:20 +02:00
Stacy Harper
469f7cbd13
Fixup inconsistent usage of default country on phone numbers 2021-06-18 10:32:32 +02:00
Stacy Harper
a3d13c6c7d
Fix shellcheck error 2021-06-13 08:51:53 +02:00
Stacy Harper
0ec4280c8d
Display the hidden entry in showcontact 2021-06-12 13:15:34 +02:00
noneofyourbusiness
3599be95f4
verify numbers with pn 2021-06-09 08:37:20 +02:00
Stacy Harper
59fe5977b4 Add a shortcut to list message from contact menu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 00:05:03 +02:00
Stacy Harper
2c47c5e55f List unknown numbers when adding contact
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 00:04:16 +02:00
Stacy Harper
cc81deeb10 fix a bug when you add a contact after edition
The number variable was already used so it is not empty where we need it
to be.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-16 00:01:25 +02:00
Stacy Harper
33e6ce14b3 sxmo_contactmenu.sh now use sxmo_contacts.sh
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-10 13:20:19 +02:00
Stacy Harper
91fe7fbeab Fix the unreliable modem numbers prefix issues
Sometime, the modem will give 0611924312 as incoming text or
call number instead of +33611924312 (example in france).

This cause two issues cause of format missmatch:

* Notifications sometime come from "Unknown" when we actually know
the contact
* Text/Dial menu entries are duplicated with "Unknown" persons

We try here to fix boths issues with a simple idea. We will fallback
to a default prefix when it is missing (on phone like numbers,
composed of 10 numbers).

This prefix is an environment variable that cause 0 impact if missing.

* sxmo_contacts.sh will fix the recent numbers prefixes with the default
* sxmo_modemmonitor.sh will also fix the prefix with the default one

This should solve missmatch issues as both will use country code format

I only recommend to always store contacts in the prefixed format in the
contacts.tsv file.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-10 13:20:19 +02:00
Maarten van Gompel
6dc18e22a3 fixed minor shellcheck issues 2021-04-05 12:08:22 +02:00
Stacy Harper
016363dd57 Move no before yes to confirm
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-04 20:56:54 +02:00
Stacy Harper
7c7496c06f Add icons to the contactmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-04 20:56:24 +02:00
Stacy Harper
82301e6954 Add shortcut to sms or call a contact from the contactmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-04 20:56:13 +02:00
Stacy Harper
811ea5bd5d Add a contact menu to manage them
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-25 22:07:06 +01:00