Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

Beginners • Re: Mouse macros under wayland

$
0
0
Hi everybody,

I'm looking for recommendations for a mouse macro recorder/creator.
Optimally of like to press the record button, make my moves and then later create a script so I can replay my macro as needed.

My use case is to switch the orientation of my rpis screen. I have it hung in as a tablet used to control home assistant. Great but when I vnc into the rpi the mouse movements are inverted which makes it super difficult to control. So I'd like to make a macro doing this so when I vnc into the machine I can double click/run the script, make my changes, then play another script to revert back to portrait.

I've googled a few suggestions but none that look like they'll work under wayland.

Thanks in advance for the help.
Screen orientation is something easily scripted using xrandr under X11. My understanding is the security design of Wayland prevents one program from interacting with another, so the inability to make mouse macros may be considered a feature. I think some Wayland compositors allow an application to send messages through dbus that request it to perform the functions of xrandr.

Does wlr-randr work?

https://manpages.debian.org/bookworm/wl ... .1.en.html

Statistics: Posted by ejolson — Mon Apr 08, 2024 4:18 am



Viewing all articles
Browse latest Browse all 3873

Trending Articles