Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

libinput configuration? #189

Open
colemickens opened this issue Dec 28, 2016 · 4 comments
Open

libinput configuration? #189

colemickens opened this issue Dec 28, 2016 · 4 comments

Comments

@colemickens
Copy link

I wrote the initial libinput config for sway. I don't like writing C and was thinking about contributing similar functionality here so that I can compare the dev experience of Rust and C for a small contribution to an existing OSS project.

Is this something of interest? Any ideas on how you might want to see it implemented? Seems like you write the core functionality in Rust and then it's exposed with lua for configuration...

I think it should be straightforward since this also uses wlc like sway.

@colemickens
Copy link
Author

Looks like there'd be work to do here too: https://github.com/Immington-Industries/rust-wlc/blob/master/src/input.rs

@Timidger
Copy link
Member

That'd be awesome, lib input configuration has been one of those things that slipped through the cracks since we are such a small development team.

input.rs is just a thin wrapper over the functions exposed by wlc (like the rest of wlc). We are planning to split it up into two crates actually: one that wraps C, the other that makes it more rust friendly (and hides all those pesky lazy statics).

That's a ways off however, so any changes you need to make rust-wlc side feel free to put it there and we can split it up later.

For configuration we do use Lua, and it's super simple to add new values that Way Cooler can read. If you need any help working with anything (docs are a bit scarce) feel free to ping us on the gitter chat

@Drakulix
Copy link

Drakulix commented Apr 15, 2017

Just a quick heads up, because I am not sure, if you (@Timidger) kept track of smithay's and input.rs' progress.

libinput bindings are done and you should be able to use them (especially this) to handle wlcs libinput device pointer and make configuration easily available.

I would actually love to get some testing and feedback out of this as I am not sure if I will implement this in fireplace and/or wlc.rs soon, because I am quite busy working on smithay.

@Timidger
Copy link
Member

@Drakulix Thanks for the heads up, I've been keeping an eye on smithay, but not as close of an eye on input.rs. I'll take a look at that sometime later (@colemickens feel free to take a look as well if you're still interested in doing tihs)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants