I tried doing this a while ago, and it never worked right. I ended up just cabling the monitors to both devices, and getting:

https://www.logitech.com/en-gb/produ...mx-keys-s.html

and

https://www.logitech.com/en-gb/produ...riathlon.910-0...