The Mac only parts are in https://github.com/dsmurrell/onkey/tree/main/src-tauri/nativ.... I believe that Linux would need PipeWire and MPRIS in their place.
> One of my methods for my pet projects is just to wait for someone else to do it, worked this time :)
Happy to be of service!
PRs welcome.