dotfiles-remastered/.local/share/scripts/copy-to-clipboard.sh

13 lines
172 B
Bash
Raw Normal View History

2020-07-14 21:18:01 +00:00
#!/usr/bin/env sh
set -e
if test -t 0; then
>&2 echo "Provide a file"
exit 1
fi
xclip -i -selection "clipboard" < /dev/stdin
notify-send -u low "${1:-Copied}"