clean up boop
This commit is contained in:
parent
d161ac10d0
commit
2ee093137b
|
@ -3,7 +3,12 @@
|
||||||
remote="https://boop.icu"
|
remote="https://boop.icu"
|
||||||
sound="$HOME/Projects/local-bin/sounds/success.ogg"
|
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)
|
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
|
mpv $sound
|
||||||
|
|
Loading…
Reference in New Issue