local-bin/common/boop.sh
2021-04-08 11:28:57 +03:00

15 lines
243 B
Bash
Executable File

#!/bin/sh
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
mpv $sound