sxhkd
sxhkd copied to clipboard
Libinput gesture recognition
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.
This would be neat actually. Especially if you combine it with keyboard modifiers.
Any update on this?
@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
.
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.