Commit graph

722 commits

Author SHA1 Message Date
Stacy Harper
70820d5f16 Add missing default hooks installation on first run
We also simplify some code.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-13 21:28:53 +02:00
Stacy Harper
7cf1dadf5f Fix the notification for outgoing call hanged up by the contact
There was a hole in the event logging where we start a call that the
contact hang up. As we dont have an event for outgoing call,
modemmonitor think this is a missed call.

Adding a dedicated event file help modemmonitor to know what happen.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-13 21:15:08 +02:00
Miles Alan
f63852a801 scripts/appscripts/sxmo_youtube.sh: Switch back to using codemadness-frontends
We originally switched off codemadness-frontends / idiotbox because it was
no longer functional. Nowadays it works again and is substantially faster
then ytdl.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-13 21:06:37 +02:00
Stacy Harper
c427a0eb7b Cleanup input handling
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>
2021-06-13 21:00:50 +02:00
Stacy Harper
a3d13c6c7d
Fix shellcheck error 2021-06-13 08:51:53 +02:00
Stacy Harper
3687ffacd4
sxmo_contacts now can search a contact 2021-06-12 13:35:30 +02:00
Stacy Harper
0ec4280c8d
Display the hidden entry in showcontact 2021-06-12 13:15:34 +02:00
Stacy Harper
c5c5537873
Do not enforce -e TERMCMD args and fix TERMMODE
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.
2021-06-09 08:42:51 +02:00
Maarten van Gompel
77420ebaf2
added some output verbosity in sxmo_screenlock and optimised some things
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-06-09 08:42:51 +02:00
noneofyourbusiness
3599be95f4
verify numbers with pn 2021-06-09 08:37:20 +02:00
Stacy Harper
e444553ae4
Optimize sxmo_modemtext contact listing
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.
2021-06-09 08:37:19 +02:00
noneofyourbusiness
823ad95477 add scrot script & add scrot to appmenu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-06 22:23:15 +02:00
Maarten van Gompel
f10d6cddaa various minor shellcheck fixes 2021-06-06 15:39:38 +02:00
noneofyourbusiness
875e4b6f3a add battery percentage to status bar
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-06 15:32:35 +02:00
Stacy Harper
98bd4b2f0d Make sxmo_modemtext killeable with gesture
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-06 10:39:00 +02:00
Stacy Harper
b4686caa9c Handle outgoing terminated calls as well
This make cached event to pilles up and prevent some incoming call
events to works correctly.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-06 10:22:41 +02:00
Maarten van Gompel
67d512c924
make the hide-menu gesture double as an action for closing all notifications
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>
2021-06-06 10:09:57 +02:00
Anjandev Momi
725d89d6d6
Rework the sxmo screenlock 2021-06-06 09:41:36 +02:00
Maarten van Gompel
7fbc1d347a st alias no longer needed now we use sxmo_terminal.sh explicitly 2021-06-05 18:55:05 +02:00
Maarten van Gompel
198462764f small patch to reconcile the last two commits 2021-06-04 21:54:35 +02:00
noneofyourbusiness
1121e29b3e replace "st -e" with sxmo_terminal.sh and edit it to use st -e instead of st
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-04 21:50:59 +02:00
Anjandev Momi
358d79894e sxmo_files: add "open in st" for current directory
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-04 21:50:37 +02:00
Anjandev Momi
30e8dfdc88 aerc: reopen menu after archiving or viewing next part 2021-05-31 19:46:35 +00:00
Anjandev Momi
eda812b1fa aerc: archive flat, add close tab, and clarify open as xdg-open 2021-05-31 19:41:37 +00:00
Anjandev Momi
0615306072 added context menu for aerc
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-31 21:37:52 +02:00
Stacy Harper
13bdc0e415 Remove polkit rules as it is now in pmOs package
https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2197/diffs?commit_id=5886e238babe8fd19428b4e05f89a371ed1ef4f6
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-05-29 22:48:33 +02:00
Stacy Harper
18892aa181 Fix default dir to HOME
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-23 20:05:10 +00:00
Stacy Harper
4df27b1e81
Unify window killing 2021-05-23 15:56:24 +02:00
Maarten van Gompel
88a5079072
ensure there is always an $EDITOR set
It could occur that a user does not have an $EDITOR set when logging in
via SSH.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-23 14:37:11 +02:00
Maarten van Gompel
eb34a970cb
TERMMODE was used but not set in sxmo_modemtext.sh + sanity check for sxmo_terminal
(fixed the shellcheck problem)

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-23 14:37:11 +02:00
Stacy Harper
0b79710cb5
Fix and simplify the pipecomplete svkbd managing 2021-05-23 14:25:34 +02:00
Nguyễn Gia Phong
d8e19504f6
Use Super as dwm modifier key
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-23 14:14:59 +02:00
Stacy Harper
200ecfa1a7
Fix the statusbar battery icon
We hardcode the file path as it is now configurable
2021-05-20 19:41:27 +02:00
noneofyourbusiness
500a227d05
Add an automated way to configure a hostspot network
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 16:50:04 +02:00
noneofyourbusiness
f361cf7139
replace if/elif in sxmo_network.sh with case
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 16:03:46 +02:00
Stacy Harper
c183530b38
Fix rotation while simplifying id detection.
We hardcode the default pinephone screen input id as we now can override
it by device.
2021-05-20 13:50:08 +02:00
Clayton Craft
989e36336b
deviceprofiles/librem5: set BACKLIGHT var to correct device
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:45:08 +02:00
Clayton Craft
d42c4f58d4
programs/sxmo_setpinebacklight: drop unused application
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:44:53 +02:00
Clayton Craft
921ab1773a
sxmo_brightness.sh: write brightness val directly to sysfs
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>
2021-05-20 09:43:08 +02:00
Clayton Craft
4c3e6044ce
sxmo_brightness: add support for overriding backlight device
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>
2021-05-20 09:43:08 +02:00
Alex O
5741f0692c
Wileyfox Swift rotate and autorotate fix
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-05-20 09:09:45 +02:00
Maarten van Gompel
f60ef805bc added quit option in context menu for less 2021-05-19 23:07:45 +02:00
Maarten van Gompel
c77a54857a added some links back to st menu 2021-05-19 23:07:37 +02:00
Maarten van Gompel
ad586b6b58 add some vim shortcuts to the generic hotkey menu (vim context menu is not always properly detected) 2021-05-19 23:07:28 +02:00
Maarten van Gompel
9795992d8a added Close Tab option for firefox in context menu 2021-05-19 23:07:18 +02:00
Alex O
b2fad74052 Wileyfox Swift battery level icon fix
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-19 02:46:48 +00:00
Timotej Lazar
51815acb0a smxo_appmenu: replace if/grep with case in programchoicesinit
On a PinePhone, this function took ~90 ms before the change and ~45 ms
after.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-18 06:10:12 +00:00
Stacy Harper
7fe317c71b Also give WMNAME to user inputhandlers to handle terminals
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-05-18 06:05:36 +00:00
Stacy Harper
c81940a74e fix a bug as WMCLASS can be '"gl", "mpv"'
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>
2021-05-18 06:05:36 +00:00
Jochen Sprickerhof
cafd100d28 Alias busybox pgrep/pkill only if apples are available
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>
2021-05-16 13:49:24 +02:00