Sed is called only once
now it interprets `5m37s` as `5m + 37s` -> `5*60s + 37s` -> `5*60 + 37`
before, it was `5m37s` -> `5*60s37s` -> `5*60*137*1`. the problem is
that the script does not insert a `+` between each non-number characters
and numbers. it does now, and will understand combinations of seconds,
minutes and hours.
Note, the script will interpret `5m37s` and `37s5m` exactly the same way
This may not be necessary if the user uses by themselves`+` to separate
diffent units, though I think the current behavior is very misleading.
Signed-off-by: Anjandev Momi <anjan@momi.ca>
* handle exiting menus with escape
* replace if statements with case, where reasonable
* using shell string operations instead of forking
* use sxmo_dmenu_with_kb instead of opening and closing the keyboard
* remove extra options to sxmo_terminal and sxmo_bemenu (some of them
were causing problems)
Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
Any sane linux system will have a posix compliant shell at /bin/sh
This change will allow us to better detect running scripts using pgrep.
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>
This implements what was suggested in the discussion regarding the svkbd
patch, it makes the choice of virtual keyboard configurable using the
$KEYBOARD variable, rather than hard-coding it.