As we rely on the terminal name to use the contextual menu, we used the
st target directly, preventing to use the taillog command in terminal
mode.
Add an optional TERMNAME env variable to manage this smoothly.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
As we now rely on sxmo_terminal.sh and the TERMCMD env variable, we then
can simplify things.
In the sxmo dwm context, TERMCMD="st -e" so sxmo_terminal.sh will run
the command in st.
In the ssh context, we dont have TERMCMD so sxmo_terminal.sh will just
run the command
In a tmux context, we can set TERMCMD="tmux split-window" with
set-environment -g TERMCMD "tmux split-window"
so sxmo_terminal.sh will run the command in a splited window.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
RTC loops was storing the good wake up reason but not the classic crust.
We fix it to notify the modemmonitor with the reason of the wake. This
should solve the issue and put the phone back to crust after sms.
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.
We now use uncontextualized event name from lisgd as leftrightcorner. We
will determine the action name only in the input handler. It allow
events to match multiple action depending on contexts.
We also add some basics events as left/rigth/up/down and
twoleft/tworight/twoup/twodown and use some of them.
Use use twoup and twodown to scroll in less and right left to
change the page.
We also prefer use case switch instead of if conditions.
We remove this HANDLE variable usage and exit directly when the event
has been handled.
We also add some methods as type, key or typeenter to simplify some
code.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Enforcing -e break some possibilities to use TERMCMD that dont use it.
TERMCMD should be setup in xinit. This way, in ssh mode, the value still
is empty. This way, some custom bash or tmux config could use
it, configuring it.
When you number of conversation start to grow, it rapidly take some
seconds for the menu to open itself. The [ -d "folder" ] test really is
uneficient.
This simplify this part as we now ask sxmo_contacts to only list texted
contacts.
I regularly had situations where I received a whole pile of
notifications that were hard to close. Dunst is configured to
open the notification upon click and close upon right click, but
we can't do a right click on our touchscreens, and I didn't want to
override the default left-click behaviour that might be useful.
This should hopefully solve it.
(this solution requires dbus-x11 to be installed)
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This removes the dependency on an external compiled app for writing the
brightness value to sysfs, and just echoes it directly to the backlight
sysfs node.
In addition, if the write fails, the script exits instead of sending a
misleading notification.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This uses the BACKLIGHT env var to override the device used for
controlling the backlight. My intention was to keep the default behavior
if it's unset, use the backlight/backlight path if that exists then fall
back to backlight/edp-backlight.
Finally, this changes the script to return immediately if no backlight
device is found with the given options.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
I took the WMCLASS linecode from the appmenu where we do not strip the
full line
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
The Debian busybox does not provide those applets. This makes no
difference for PostmarketOS as they are an alias to busybox.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>