#!/usr/bin/env bash

### Settings ###
# The port number to listen on.
PortNumber=5556;

################
echo Clipboard listening on localhost:$PortNumber.
echo Press CTRL+C to quit.

while (true); do nc -l $PortNumber | xclip -selection c; echo Local clipboard set by remote host.; done
