[Feature request] Touchscreen support
There is currently no tiling window manager with touchscreen support out there, but PCs with touch screens are getting more and more common. I would love bspwm to support touchscreen operation.
It could look like this: Similar to pointer_action1-3 you could have settings for touch_action1-5 (1-5 fingers), which also can be set to move, resize_side, resize_corner focus and none. For example you could move windows by dragging with 3 fingers and resize them with 4 fingers.
Touch actions should not require a modifier key to be held down.
sxhkd could implement support for 1-5 finger tap. Gesture recognition to run commands is probably out of scope for this project. Also there are already stand alone programs to do that.
To implement touch recognition the TOUCH_BEGIN, TOUCH_UPDATE, TOUCH_END and TOUCH_OWNERSHIP events from libxcb-input should be used.
I'm willing to look into that myself (already did a bit of reseach), but my C experience is very limited (also xcb -input documentation is very incomplete).
EDIT: I started implementing this over at https://github.com/freundTech/bspwm-touch. In case you're not interested I'll just maintain it as a fork.
@freundTech If your code is good enough you can always submit a PR, although there's also nothing wrong with having a fork I suppose.
@shinyquagsire23 Yes. I'm planing on submitting a PR once I'm done, but
- I don't know how good my C is (probably not very good. More of a Java, python and javascript programmer).
- This would add a dependency on xcb-xinput, which isn't included in all distributions yet.
@freundTech are there any news?
@oyren No. Sorry. Haven't worked on this in a very long time, as I no longer use my MS Surface.
For travelers looking here in the future, I've hacked together my own thing using lisgd. It's a gesture daemon, and is probably what you need. I used it to implement a simple touch interface on my Thinkpad x230t.