local-bin/common/boop.sh

10 lines
218 B
Bash
Raw Normal View History

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