#!/usr/bin/env bash

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

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

while (true); do xclip -selection clipboard -o | nc -Nvl $PortNumber; echo Local clipboard sent to remote host.; done

