dotfiles/tools/clipboard
2020-08-16 11:54:34 +01:00

7 lines
174 B
Bash
Executable file

#!/usr/bin/env bash
read contents
if [[ -x `which wl-copy > /dev/null 2>&1` ]]; then
echo "$contents" | wl-copy
else
echo "$contents" | xclip -selection clipboard
fi