Some setup for the main question:
I have a laptop (Linux/Windows) and a PC (Windows). I’ve connected these two to a single USB hub so that I can use the same keyboard and mouse for both systems with one button press in the USB hub. I also share my main monitor (Dell U2713HM) with these systems and I need to change the input source when ever I want to change the system (HDMI to laptop, DVI to PC).
Actual question:
Can I change the input source changing to a single hotkey or make it a smoother experience in any way?
Most likely there isn’t any interfacing with the monitor and keyboard. I think the proper solution to your problem is a KVM which Level1 just so happens to sell.
If you really wanted to do it on the cheap you may be able to fake a button press on the monitor with an Arduino or something but that may take some time to figure out.
ddcutil is the linux package to do this, but it only works with modern monitors. there’s some i2c hardware devices that can do it on older ones that don’t comply to the new command standards.