I was looking for something similar where I could easily switch multiple displays between my work Mac that uses a dock and my personal gaming PC. I thought that would be the solution, and it almost was. Unfortunately, it didn't quite work. There were issues with USB on one input (PC) and the display was correctly showing full 4k on the other (Mac). I tried different combinations, different cables, but unfortunately nothing changed. So while I was hoping to find the perfect solution for my specific needs, I expect my search will continue.
CKL 4 Port KVM Switch Dual Monitor DisplayPort 4K 60Hz: Unprecedented Multi-Computer Control with Audio, USB 2.0 HUBS, and DP 1.2
11 Review
π HDMI 2.0 4 Port KVM Switch with 4K@60Hz, 2K@144Hz,1080P@120Hz Support, 18Gbps Bandwidth, USB 2.0 Keyboard/Mouse/Printer/Monitor/PC Selector, Audio Out/Mic In, HDR10, Dolby Vision, Dolby/DTS, HDCP2.2 Compatibility
10 Review
Enhance Productivity with CKL HDMI KVM 2 Port 4K 30Hz Dual Monitor Extended Display (CKL-922HUA)
10 Review
TESmart 1080P 60Hz USB VGA KVM Extender Over Cat5e Cat6 Ethernet Cable - Long Range 984ft/300m (Sender+Receiver)
10 Review
Fractal Design Node 304 - Black - Mini Cube Compact Computer Case - Small Form Factor - Mini ITX β mITX - Enhanced Airflow - Modular Interior - Includes 3x Fractal Design Silent R2 120mm Fans - USB 3.0
42 Review
Computer case AeroCool Cylon black
39 Review
Computer case Deepcool Matrexx 55 MESH black
64 Review
Zalman Z3 M ATX π» Tower Computer: A Compact and Powerful Machine
77 Review