

3·
3 days agoThis looks promising https://www.baeldung.com/linux/mouse-events-input-event-interface
You’d have to write some service that runs in the background monitoring for the hotkey that starts the macro.
I’d probably do it in python or another real language other than bash at that point
If you have a keyboard running qmk or something you may be able to just write a macro for that. I’m not super familiar with it though