dotfiles/tools/clipboard
2020-07-30 19:40:26 +01:00

8 lines
157 B
Bash
Executable file

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