baskerville / sxhkd

Simple X hotkey daemon
BSD 2-Clause "Simplified" License
2.76k stars 139 forks source link

Libinput gesture recognition #68

Open addisonamiri opened 8 years ago

addisonamiri commented 8 years ago

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.

rien333 commented 5 years ago

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

ar1a commented 5 years ago

Any update on this?

jallbrit commented 4 years ago

@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.

rien333 commented 4 years ago

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.