sxhkd icon indicating copy to clipboard operation
sxhkd copied to clipboard

Libinput gesture recognition

Open addisonamiri opened this issue 9 years ago • 4 comments

I was curious if libinput gestures could be implemented as triggers for sxhkd. I didn't think it would be possible until I saw this project that did it in a python script. It seems like this would fit well within sxhkd though so I'm curious if there's any interest in it and how easy it would be to implement.

addisonamiri avatar Jan 21 '16 21:01 addisonamiri

This would be neat actually. Especially if you combine it with keyboard modifiers.

rien333 avatar Dec 29 '18 11:12 rien333

Any update on this?

ar1a avatar Jan 26 '19 07:01 ar1a

@addisonamiri I'm not aware of how libinput works, but would it be possible for libinput to send a combination of keypresses upon receiving a certain gesture? This way, you could map gestures to keys using libinput, then bind the keys to an action using sxhkd.

jallbrit avatar Aug 05 '20 01:08 jallbrit

I'm not aware of how libinput works, but would it be possible for libinput to send a combination of keypresses upon receiving a certain gesture? This way, you could map gestures to keys using libinput, then bind the keys to an action using sxhkd.

That seems just like adding an unnecessary extra step into what both "programs" can do in one go. sxhkd runs commands based on keyboard events, and something like libinput-gestures runs commands based on mouse events it recieves from libinput (iirc).

The main benefits of adding native libinput support to sxhkd would be the possibility of combination of modifier + swipe gestures (macOS's better touch tool can do this; e.g. 2 finger swipe+ctrl), or to eliminate programs like libinput-gesture from your system.

rien333 avatar Aug 05 '20 14:08 rien333