So have you heard about synergy ? It is basically a virtual KVM that allow you to use one mouse and one keyboard for multiple computer (and laptop) accross one network. Check on this link to get more information about the use case on their official website.
Setup synergy is easy, unless you want to use an exeternal monitor for your second machine / notebook
My workstation setup is like this :
So i have one machine running Windows 10 as synergy server. Occasionaly i want to use the monitor for my laptop. I assume you know the basic tutorial of using Synergy , so i won’t describe the basic step..