I can't install Barrier on my work laptop for policy reasons, but I don't want to buy a KVM, so a project I've been interested in building when I have time is porting enough of the Barrier/Synergy protocol to the Particle Photon [1] or BeagleBone Black [2] I've had lying around for a while, and then configuring it to emulate a keyboard and mouse via its USB gadget driver, allowing it to control my work laptop over US…
The annoying/challenging part is that you need to drive the 2nd machine using relative motions, but place the cursor accurately and keep track of it. If the 2nd OS skips frames or has acceleration, you are pretty quickly implementing a Kalman filter.
[1] https://docs.particle.io/reference/device-os/firmware/#movet...