clean up boop

This commit is contained in:
Siina Mashek 2021-04-08 11:17:33 +03:00
parent d161ac10d0
commit 2ee093137b

View file

@ -3,7 +3,12 @@
remote="https://boop.icu"
sound="$HOME/Projects/local-bin/sounds/success.ogg"
if [ !-f "/usr/bin/xsel" ]; then
echo "Please install xsel"
exit
fi
url=$(curl -F"file=@$1" $remote)
echo "$url" | tr -d '\n' | xsel -ib > /dev/null 2>&1 || echo "please install xsel"
echo "$url" | tr -d '\n' | xsel -ib
mpv $sound