local-bin/bin/boop.sh

10 lines
155 B
Bash
Raw Normal View History

#!/bin/sh
remote="https://boop.icu"
sound="${HOME}/src/local-bin/sounds/success.ogg"
url=$(curl -F"file=@$1" $remote)
echo "$url" | xsel -ib
mpv $sound