-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Auto Mouse Hiding Enhancement #23
Comments
Thank you... let's make it part of 3.0 release! |
On a second thought, going to postpone this feature to round back at later. None of the existing solutions are up to the mark in terms of quality of implementation. They have all sorts of issues - from dependencies to distributions & everything in-between. They do not follow the "do one thing, and one thing well" methodology & hence suffer from the feature overloading problem. Half of them are also tied to specific display server or compositor, even though this can be done by directly talking to the Kernel. The one that comes closest is If I really have to build C code anyway, I'd rather write a better/leaner implementation. All that's needed is to send // NOTE: IT'S NOT VALIDATED & SHOUDN'T WORK
// THIS IS JUST A REFERENCE, NOT AN EXAMPLE
// I NEED TO FIND THE DEVICE TO fwrite() TO
#include <linux/input.h>
void main (int argc, char *argv[]) {
struct input_event ie;
ie.type = EV_REL;
ie.code = REL_X;
ie.value = 1000;
fwrite(&ie, sizeof ie, 1, THE_INPUT_DEVICE_TO_HANDLE_THIS);
// you can include stdio.h & use `stdout` to fwrite to
// that should allow you to compile & run it
// and spit event bytecode in terminal... xP
return;
} But we'll come back to it at a later point. Meanwhile, 👍 the issue to flag it as important, to help me prioritize this. |
I wonder if all it had to do was to send the mouse into the bottom right or something after 10 minutes of boot up. Do that once. Easy, effective :) |
Holy crap, I might have found a solution: ydotool |
"ydotool mousemove -x 0 -y 0" should put it to the top left. Might be good enough... |
https://askubuntu.com/questions/956640/equivalent-to-xdotool-for-wayland wtype and evemu might be better even. No need to reinvent the wheel, just move the mouse. :) |
As mentioned before, the problem here is:
Which means, I don't wanna take responsibility for building and distributing binary of a third party solution... but, you (and anyone else needing this feature) can totally use it for themselves. If you can please write down the method you've followed to make it work for yourself, then I can mark that as the solution and close this issue for now. |
Ya, good point. I used the solution from the first one. I just found that "Wayfire extra plugins" has a hide cursor plugin, perhaps that would be a good starting point. |
Seems like this would be a good option here:
https://raspberrypi.stackexchange.com/questions/145382/remove-hide-mouse-cursor-when-idle-on-rasbperry-pi-os-bookworm/145390#145390
2
I've had success with installing the hideaway plugin for Interception Tools using the script below.
Adapted from https://forums.raspberrypi.com/viewtopic.php?t=358285#p2176499
The text was updated successfully, but these errors were encountered: