local-bin/bin/boop.sh

10 lines
154 B
Bash
Executable File

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