Commit graph

22 commits

Author SHA1 Message Date
Stacy Harper
f86cc46d03 Add a bemenu control mode to access bemenu control with buttons
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:22:43 +02:00
Stacy Harper
1e09c9c452
Use environment variable to handle the screenlock with button
We was not using them for this action.
2021-08-23 14:01:25 +02:00
Stacy Harper
8a27933c47 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>
2021-08-22 13:23:22 +02:00
Stacy Harper
b1403f983e Allow the inputhandler hook to override locked state inputs actions
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>
2021-08-22 13:22:38 +02:00
Miles Alan
9870940de4 sxmo_inputhandler.sh: Switch voldown_two to trigger Super+x (inplacerotate)
Fixes regression where not all clients rotated on doubletapping
voldown key.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-29 22:02:08 +02:00
Stacy Harper
25913ebaf1 Add basic st scroll gesture inputs
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Miles Alan <m@milesalan.com>
2021-07-29 08:13:04 -04:00
Stacy Harper
99d226929b Prefix one finger gesture with "one"
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>
2021-07-10 16:32:43 +02:00
Stacy Harper
44dcd8ced9
Remove close window actions as it causes issues 2021-07-07 20:57:07 +02:00
Stacy Harper
0ed27f8538 Handle cron tasks while in crust
mnc goal is to display when will occurs the next cron job.

We drop the "sxmo_screenlock.sh rtc" command and the
SXMO_RTCWAKEINTERVAL variable. We will now only use
"sxmo_screenlock.sh crust" which mean suspend until next cron job
(-2 seconds).

To replicate the old behavior of the blinking phone then returning to
suspension (if needed) we now use a new script.

By example:

*/15 * * * * DISPLAY=:0 sxmo_rtcwake.sh sleep 10

This will trigger a 10s sleep task every 15 minutes (the old default
rtcwake hook).

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-29 22:43:09 +02:00
Stacy Harper
f28a81a10c Contextual gesture for amfora
This make gestures convenient enough to use the app only with gestures.

All the scroll direction are used :

Prev link       Scroll Up     Open in new tab

Back prev page                Open link

Close tab       Scroll Down   Next Link

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-21 23:02:28 +02:00
noneofyourbusiness
03b7a9d59f
fix power button double tap by removing -e flag from inputhandler
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-06-17 17:24:51 +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
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
Stacy Harper
4df27b1e81
Unify window killing 2021-05-23 15:56:24 +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
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
Maarten van Gompel
906226a4ed added gesture to close less/mless (swipe to left edge or left along bottom edge) 2021-04-26 23:00:35 +02:00
Stacy Harper
bbece6a657 Use toprightcorner to open user script menu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 01:27:20 -04:00
Stacy Harper
f16422cf0c fix indentation style
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 01:27:20 -04:00
Maarten van Gompel
21379b7914 Renamed sxmo_gesturehandler.sh to sxmo_inputhandler.sh (after Sam Bowly's patches), renamed gesture hook to inputhandler hook. Removed hotcorner script and powerbutton scripts and their hooks (now all handled by inputhandler and its hook). 2021-04-10 13:47:22 +02:00
Renamed from scripts/core/sxmo_gesturehandler.sh (Browse further)