Check for $DISPLAY before trying for xclip.

Props to https://github.com/sitaramc/hap for the tip.
record reference points