dotfiles/tools/clipboard

8 lines
157 B
Text
Raw Normal View History

2019-03-26 09:55:52 +00:00
#!/usr/bin/env bash
2020-07-30 19:40:05 +01:00
read contents
if [[ -x `which wl-copy` ]]; then
echo "$contents" | wl-copy
else
echo "$contents" | xclip -selection clipboard
fi