~mil/sxmo-utils

sxmo-utils/scripts/modem d---------
Allow phone number find in send text submenu

This allow the user to use a non formated phone number. We
split valid number check in a dedicated script to allow this.
Rework the status bar

Goals of this patch :

- display the signal quality

I used a thermometer icon cause there is no available icon with a
filleable bar o_O

- display the currently used network technology (4g, 3g, etc...)

I used the mapping from:

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/master/include/ModemManager-enums.h#L220

Dylan also said:

Anything from POTS to GPRS = 2G
UMTS to EVDOB = 3G
LTE = 4G
5GNR = 5G

- display the modem infos when modemmonitor is disabled

We want to decorelate the modem monitor from the icon. We still want to
know easily if modem monitor is runing but we also want those modem
infos if not.

- simplify the modem state determination (no state file anymore)

The statusbar probe mmcli itself.

- fix the leading timer without call issue

This was caused by the "pgrep -f" command that was matching itself.
Using a simple "pgrep" looks good enough anyway.

- fix some sxmo_statusbar update spaming issues (vol control)

This one point took me a lot of time to findout a good solution. We want
the USR1 kill to be spamable without causing issue to the displayed bar.
We dont want mid rendered bar (half the icons).
We dont want empty bars (empty stdout line).

I use some variable to store pid, smart waits and a better trap function
to make it to works cleanly. Now we can spam statusbarupdate. Only the
last one will actually redraw the bar.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Move operating system detection to sxmo_common

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Fix non-eg25 modems in modemmonitortoggle

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Fix sxmo_modemcall recent regressions

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
minor syntax fix, quote var
Add Arch handlers to manager daemons in sxmo_modemmonitortoggle
Make sxmo_modemmonitortoggle reset ospotent
Dialer menu should be with keyboard (so you can enter number).

Signed-off-by: Stacy Harper <contact@stacyharper.net>
use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu
fixed typo in dmenu option
Fix the dmenu autoclosing on ended call.

Oops.
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>
increase retry interval a bit so modem doesn't reset too soon
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>
Prevent some error states cause of dangling event files

Some event file stay present in some case (ex: .initiated) and this can
lead to issues in futures calls.

We remove dedicated cleanup and now we remove all event file related to
the finish call in once. We do it in incoming call cause sometime
modemnager fail to detect terminated calls.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
ModemMonitor: Periodically check whether the modem is still alive, reset it if not

Signed-off-by: Stacy Harper <contact@stacyharper.net>
unlocksim fix

Signed-off-by: Stacy Harper <contact@stacyharper.net>
fix dtmf tones with busybox grep: dont set initial value

busybox grep doesnt have -b flag

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Prevent the incomingcallmenu to go futher if the menu failed

This can happen if an call come while a menu already is open of if the
user kill the dmenu with a top side gesture.

We dont want the notification to be purged to allow the user to manually
open it with the notification appmenu so we have to stop the code here.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Next