No need for a second mouse: http://synergy-project.org/
They've recently moved to a paid model, but some older free versions are still around.
I don't know why it's not better known.
I almost think the next Tron movie needs a character named Synergy that bashes down arbitrary walls between systems to really get the idea out there ;)
X11-only equivalent of synergy is for example x2x (https://github.com/dottedmag/x2x).