I had to write something. This was kinda shocking to me. I was looking for a KVM (Keyboard, Video and Mouse) software to be able to control my notebook from my PC. Been using an old free version of Synergy, but for some odd reason seems to be compiled for 32 bits and I felt it was a terrible waste to install multilib just to run it. So I decided to look for an alternative.
As usual, went to google and discovered that Slackbuilds has Barrier but when I tried to install it, it asked for avahi, and avahi asked for something else and that something else asked for other-something-else. So I gave up. Then I came across x2x.
This particular software has a wikipedia page so I wont bother telling the story about it.
cd
mkdir -p install/util/x2x
cd install/util/x2x
wget https://slackbuilds.org/slackbuilds/14.2/desktop/x2x.tar.gz
tar xf x2x.tar.gz
cd x2x
wget https://slackware.uk/~urchlay/src/x2x-1.30_beta+20200121_ec10215.tar.xz
su
./x2x.SlackBuild
installpkg /tmp/x2x-1.30_beta+20200121_ec10215-x86_64-1_SBo.tgz
then I have to create an script to connect to my notebook, but before I get into that I had to read the man page, last section, after the examples, gives an important tip when you have multiple monitors
Left: 1920*1080 (primary)
Right: 1366*768
So I had to do the math and write the parameters to x2x according to the man page:
#!/bin/bash
ssh -YC rudy@macabra x2x -north -to :0.0 -big -completeregionleft 0 -completeregionup 0 -completeregionright 3286 -completeregionlow 768
I have ssh configured so it wont ask me for password. North parameter means I placed my notebook "over" my monitors and it doesn't really matter from which monitor my mouse goes up, it appears on my notebook and it's able to travel the entire notebook screen.
What shocked me about this is the fact it's a very old proyect, but works like a charm.