local-bin/common/boop.sh
2020-12-22 06:11:00 +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