-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Nix Module: declare devices & fix naming #6
Comments
Devices would currently bind automatically, yes. The udev script basically matches and applies to all mice. Similarly, #5 would actually always apply to all mice (although we could have a way to filter them down there too) I'll have to defer to @AndyFilter on the value mismatch. I based the names off of their I think On a side-note, |
The uniform integration of features / names sounds great, however I can't help with the NixOS implementation. What I can say is that the device binding scripts are pretty simple, for binding it can look like so: #!/bin/bash
DEVICE=$1
echo "Rebinding $DEVICE"
echo -n "$DEVICE" > /sys/bus/usb/drivers/usbhid/unbind
echo -n "$DEVICE" > /sys/bus/usb/drivers/leetmouse/bind Same for As for the names, I have to admit they are not very good, so I'd would rather look at it both ways, as in "What name is better? And let's just stick to it" rather than "Let's change the NixOS names to what's in YeetMouse GUI". For example, I think When it comes to Lines 379 to 380 in ba430f6
I'll remove it in the next push, it does nothing currently. I thought maybe someone would ask me to "add a mouse wheel acceleration", but it didn't happen, and I don't think it's going to happen. It's not that useful, and you probably can change that in the system settings either way (or you can't because of the driver, I don't know). About the YeetMouse/gui/DriverHelper.cpp Line 272 in ba430f6
And is explained a bit in the declaration: Line 177 in ba430f6
(As you can see, there is only one conversion, meaning something is wrong...) But you're right it's parsing the driver's radians as degrees and simply doesn't work, thanks for pointing that out. I probably didn't catch it because I was not able to close the program and then open it, while my mouse was going the opposite direction to where I wanted it to go. 😄 `` |
Superb work for all contributors to this Project in general! I am amazed how people can just do things. 😄
With the addition of 489bf1e I think it'd be nice if we could declare devices directly in nix to automatically bind it?
However I'm also not sure if they're already supposed to bind automatically.
Secondly, I find the naming of the parameters in Nix & the parameters in the app a bit confusing.
While the first few are pretty near 1:1 translations into nix, I marked the odd ones out with ❓.
The text was updated successfully, but these errors were encountered: