My Monitor has 1 spare HDMI port and the desktop it is connected to (through another HDMI) has wired mouse and keyboard attached to it.
I am looking for a device or cable that would allow me to plug in my 2017 MacBook Pro to the monitor and to use the existing mouse and keyboard without unplugging them from the desktop.
So far I have explored two options
Connect the Mac using a USB-C to HDMI cable to the monitor and use a software to redirect inputs from desktop. In this case I will have to keep my desktop running while I'm using the Mac which is what I don't want.
Use a device (example) to convert my mouse and keyboard to Bluetooth and connect them to both desktop and Mac (while using the same USB-C to HDMI cable to connect the MacBook to the monitor)
Are there, possibly, any other easy options?