diff --git a/common/boop.sh b/common/boop.sh index 76e9352..6cfcd27 100755 --- a/common/boop.sh +++ b/common/boop.sh @@ -3,7 +3,12 @@ remote="https://boop.icu" sound="$HOME/Projects/local-bin/sounds/success.ogg" +if [ !-f "/usr/bin/xsel" ]; then + echo "Please install xsel" + exit +fi + url=$(curl -F"file=@$1" $remote) -echo "$url" | tr -d '\n' | xsel -ib > /dev/null 2>&1 || echo "please install xsel" +echo "$url" | tr -d '\n' | xsel -ib mpv $sound