local-bin/bin/boop.sh
2020-12-20 20:30:34 +02:00

10 lines
218 B
Bash
Executable File

#!/bin/sh
remote="https://boop.icu"
sound="$HOME/Projects/local-bin/sounds/success.ogg"
url=$(curl -F"file=@$1" $remote)
echo "$url" | tr -d '\n' | xsel -ib > /dev/null 2>&1 || echo "please install xsel"
mpv $sound