#!/bin/sh # rx2x - run x2x on other machine, directed to this one # Which way side of the other machine's screen is this machine? # (This should really be a command line option.) # - east means the machine running this script is on the right # - west means the machine running this script is on the left side=east cd / exec ssh -f -X "$@" \ 'exec x2x -to $DISPLAY -from :0 -'"$side"' -resurface -buttonblock'