iberianpig / fusuma

Multitouch gestures with libinput driver on Linux
MIT License
3.58k stars 146 forks source link

Custom and chained gestures #298

Open digitalsignalperson opened 1 year ago

digitalsignalperson commented 1 year ago

Is your feature request related to a problem? Please describe. Limited in how many gestures that can be configured, and ones that are easy to do (e.g. hard to use 4 fingers for frequent operations).

Describe the solution you'd like Could we record custom gestures, or chain multiple types of gestures together?

E.g. hold one finger and swipe up with another image

Hold one finger and up/down swipe the other image

custom shapes image

direction changes image

Describe alternatives you've considered There's a fusuma plugin that can add holding a key down as a modifier which allows for a bit more options. But it would be cool to just chain multiple gestures together.

Additional context I'm inspired by the types of gestures available for GestureSign on windows https://github.com/TransposonY/GestureSign which also includes letting you draw your own gestures

It's open source so maybe some of the code can be recycled

Here's a screenshot of it's control panel with the default gestures it comes with: image

Here's what it looks like recording a custom gesture I held two fingers down with one hand, and drew a triangle with the other image

Another interesting feature it has is specifying gestures either by program name, or globally. This could probably be handled with some xdotool stuff and checking what the active window title is.

iberianpig commented 10 months ago

Recording gestures or chaining multiple gestures together is not impossible. However, incorporating these features into the current codebase of Fusuma might make it more complex and potentially interfere with other gestures. Therefore, it's not intended to be provided as a core feature of the main application.

However, while it may not be feasible within the core Fusuma functionality, it's not impossible to achieve. Expanding these capabilities as plugins for Fusuma could certainly be an option.