-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
mousetweaks: init at 3.32.0 #60176
mousetweaks: init at 3.32.0 #60176
Conversation
cc6e335
to
b32b632
Compare
This will not work on GNOME under Wayland. I heard something about it being rewritten as a part of Mutter (GNOME’s WM) Edit: https://gitlab.gnome.org/GNOME/mutter/merge_requests/512 https://gitlab.gnome.org/GNOME/mutter/issues/42 |
Hmmmm, I'll look into it. |
Maybe I should move this under the |
b32b632
to
11ca4a3
Compare
I tested |
license = licenses.gpl2; | ||
platforms = platforms.all; | ||
maintainers = [ maintainers.johnazoidberg ]; | ||
repositories.git = https://gitlab.gnome.org/GNOME/mousetweaks; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think this does anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw it on some other derivations and thought it couldn't hurt.
I'm not sure it does anything either 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
72 derivations have it so it's at least an unwritten convention. Doesn't seem to be used right now but might be useful in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect it comes from update walker, an old update system nobody uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reference to this in update walker. According to 452b25b it is used by some @Phreedom’s tool, possibly https://github.com/Phreedom/nixpkgs-monitor, which refers to it in its source code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yeah I understand Eelco's concern but since there are already a lot of packages with it I think we can continue for packages that the repository is neither the homepage nor the source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I did not even notice the comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of GNOME's wiki pages have a mention of the git repository, and even in this case where it's an old
url https://git.gnome.org/browse/mousetweaks
it still redirects to GitLab.
There's not a lot of references to this attribute and I don't even see it documented anywhere. I'd say it's safe to not
use it, though I do see a place for it being useful as you mentioned @JohnAZoidberg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it is kind of formal, it's been a part of the valid meta
attributes for quite a while.
@copumpkin added it here: 1a4ca22#diff-3c8a88619c3ca3d61eb0ce8794d9bb74R228
He added the check probably after realizing that lots of people started to use it.
Yeah, https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/474 is the MR I had in mind. I can confirm this works in GNOME Shell running on Xorg (In Control Center under Universal Access enable Click Assist). We may want to patch https://gitlab.gnome.org/GNOME/gnome-settings-daemon/blob/725d1e53fd656e1039c8da02ba0dbfd3db93b3c1/plugins/mouse/gsd-mouse-manager.c#L119, as without mousekeys being on Given that this is useful for other Xorg based desktops (even though it might need to be controlled through CLI arguments), I would still like to merge this. It is not like we are removing Xorg anytime soon, and those relying on accessibility features still depend on it anyway. |
Hmm does jtojnar switch between these effortlessly 😁
Sure, we can eat the runtime dep.
Right, surprised it wasn't packaged already anyway. |
I have elementary and some other VM definitions on hand, so I just run nixos-rebuild build-vm -I nixpkgs=$HOME/Projects/nixpkgs -I nixos-config=../nix-playground/elementary.nix
env QEMU_NET_OPTS="hostfwd=tcp::2222-:22" ./result/bin/run-*-vm and roll 🚶♂️
Yeah, I was lazy and it was not very high in my queue since I was not sure what it actually does. |
huh, I tend to keep a repo of configurations and just use an alias to build them when it's in the working directory. Also looks like they even ship this tool
Same there, they shipped it so I almost packaged it. But didn't know what it was for. |
Thanks for the feedback!
But isn't mousekeys on the |
Looked into if onboard should depend on mousetweaks. First I was confused that it depends on the old settings schemas I suggest adding it to And we might want to patch https://bazaar.launchpad.net/~onboard/onboard/trunk/view/head:/Onboard/ClickSimulator.py?start_revid=2295#L482 |
Cannot find any code path where orca depends on mousetweaks. |
I patched both locations. Is there a way to write a patch file that I can interpolate a nix-store path into? I remember seeing something with |
You can use patch with nixpkgs/pkgs/desktops/gnome-3/core/gnome-control-center/default.nix Lines 39 to 47 in 12b82b1
|
05aee72
to
38b3206
Compare
Thanks! Now it's using that. |
38b3206
to
7bf43ac
Compare
7bf43ac
to
6d4aa51
Compare
Things done in the force push
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think it's ready for merge 👍
Appears resolved by author from my discernment
6d4aa51
to
8ffcfdd
Compare
Thank you @JohnAZoidberg for your contribution and being so quick to respond to changes ✨ |
Thanks for your thorough review! |
Motivation for this change
We should have more accessibility programs.
Runs fine but I haven't tested with Gnome so I don't know if it does the
right thing. So I guess it's WIP.
I'd be glad if somebody tried it on Gnome :)
Solves #39509
Things done
sandbox
innix.conf
on non-NixOS)./result/bin/
)nix path-info -S
before and after)