clean up boop
This commit is contained in:
parent
d161ac10d0
commit
2ee093137b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue