UGREEN USB 3.0 Switch Selector 2... https://www.amazon.com/dp/B01N6GD9JO?ref=ppx_pop_mob_ap_shar...
I used a cheaper one before that but it was garbage - kept dropping inputs for a few seconds here and there.
A USB hub is plugged into it, and all needed peripherals go into the hub first, including audio interface, external hard drive, printer etc.
It's solid, boring, and works perfectly. I've never had a single problem with it, even with my X570 chipset constantly doing the old USB disconnect-a-roo that it's infamous for.
Came to the thread to post this in case it wasn’t posted. Quite a ton of actual utility from a small noname box from Amazon for my same-displays-but-different-sources setup (Mac mini for work, PC for gaming).
With 2 monitors, I use one monitor exclusively with the linux laptop, and the other monitor I have on a HDMI switch to switch between the other 3 computers.
[1]: https://www.microsoft.com/en-us/download/details.aspx?id=354...
The fact that the monitor itself is responsible for display inputs removes all kind of problems that traditional KVM boxes have.
In theory the monitor could also switch headphones audio from one computer to the other, and it works, but the output quality is garbage. So I still have that cable to switch manually.
https://github.com/input-leap/input-leap
Also recently learned about waynergy as a upcoming wayland client. Haven't used either yet as barrier still handles my setup.
When switching from personal to work mode, I just swap the USB-C between computers.
Dunno if any USB-C switchers exist though.
I will say my favorite accessory has been my particular KVM that allows me to switch between my dock and desktop with a special keyboard command. Beats fiddling directly with the many buttons I had to press on my monitor to switch video inputs previously.
My laptop uses the charging USB-C port. My desktop requires 2 cables: 1 DP cable (so I can chain another screen) and 1 usb-c cable to the usb-c upstream port.
Whenever I want to switch, I just need to change the input source on my screen, between DP (desktop) or USB-C (laptop). All USB devices and internet are automatically routed to the right computer.
It works like a charm, really happy with this (but once again, that's an expensive screen)
I used to have dual monitors, but now I use a super ultrawide 32:9 monitor. It required learning to use window managers since most OS's don't support multitasking setups like that, but I can use layouts now that I couldn't before. I also use PaperWM[1] with it and it feels particularly effective on ultrawides.
[1]: https://github.com/paperwm/PaperWM