#!/bin/sh [ "$1" = "-p" ] && i='primary' || j="c" if [ "$WAYLAND_DISPLAY" ] then wl-paste -n "$1" else xclip -o -sel ${j:-p} fi