If you have a monitor that can serve as a USB hub (pretty easy to find) and has a thunderbolt input (less easy to find but there are options), you can hook multiple machines up to the monitor and use `ddccontrol` to toggle the monitor's active input. The devices hooked up to the monitor via USB can then follow the monitor to any of the connected computers.
I have my mouse, keyboard, and webcam plugged into my monitor. The monitor is connected to both my work laptop and personal desktop. I wrote a script using `ddccontrol` that I have bound to a hotkey on the laptop and desktop which toggles the active input. Switching the display and USB peripherals back and forth between the two machines is just a keyboard hotkey.
The commands look something like this:
`ddccontrol -r 0x60 -w 3855 dev:/dev/i2c-7 >/dev/null 2>&1'
With the exact arguments dependent on your particular hardware.
Damn, I didn't know usb on monitor was a thing. This could work for me if I get a new monitor since I use a single display for multiple boxes. Maybe I could try Synergy too with the ddccontrol command
I have my mouse, keyboard, and webcam plugged into my monitor. The monitor is connected to both my work laptop and personal desktop. I wrote a script using `ddccontrol` that I have bound to a hotkey on the laptop and desktop which toggles the active input. Switching the display and USB peripherals back and forth between the two machines is just a keyboard hotkey.
The commands look something like this: `ddccontrol -r 0x60 -w 3855 dev:/dev/i2c-7 >/dev/null 2>&1'
With the exact arguments dependent on your particular hardware.