#!/usr/bin/env sh
# TODO: detect MIME type?
# can a `clip-once` script exist building on this?
# wl-copy `-o`, xclip `-l 1`?
if is_wayland; then
wl-copy -n wl-copy --trim-newline "$@"
else
xclip -i -sel p -f "$@" | xclip -i -sel c "$@"
fi