We had issue in ssh mode and this new bemenu curses mode.
No issue on other sxmo menu that use successive bemnu but this appmenu
loop displaying some ~F char when you select a subentry.
I refactorised a little bit this script and now it works well. I'm not
stil not sure of what was causing this.
By the way I changed some echo for printf. I also added the wrap
argument for bemenu in ssh mode.
I enlarge the sleep on overflow by 2. But I make this check only
applicable for holded buttons.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
The size was perfect to fit between keyboard and the status bar but then
it was hard to trigger page up without triggering lisgd gesture.
Make bemenu a little tinier to simplify this
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This add some config file to the check list. It also handle ssh and none
mode to check all files.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
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>
The user may want to change completly the buttons actions in normal and
locked mode. This allow this !
Btw, we also provide default inputhandler actions (as example) to help
the user to build their own.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
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>
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>
Though we'll ship and install mnc by default, we already someone run
into this, so best make the script a bit more robust.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
busybox less cannot display colors. As we use the -F arg to stop less if
the page fit in one screen, we can just use more without arguments.
Both behave the same but more god color capabilities.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Changes from v1: This triggers the hook (without the 5 second sleep!) also when the unsuspendreason is modem or rtc,
so the user can always override the behaviour and do what he/she wants.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This is usefull for cron jobs that would manage sxmo like screenlock by
example.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This makes sure that environment variables are set for the demons and
for example st started form the app menu (if launched through lisgd).
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This make input handling matching more consistent.
Take this example :
You want to bind one finger left gesture to something with all the
distance (short, medium and long) so you now can match *"oneleft" to
match "longoneleft", "mediumoneleft", "oneleft".
Without the "one" you would use *"left" which also match "twoleft" and
this override the "move to another workspace gesture.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
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>
Atm, only the button wake up reason was trigerring postwake. This make
the usb charger to uncrust the phone and leave it in lock or off mode.
Now postwake take an argument which is the wake up reason.
The modem reason should not manage so phone state so we make it explicit
in the default hook.
"usb power" and "button" now make the phone to blink 5 seconds and put
the phone back to crust.