2020-11-11 02:49:54 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
remote="https://boop.icu"
|
2020-12-20 20:30:34 +02:00
|
|
|
sound="$HOME/Projects/local-bin/sounds/success.ogg"
|
2020-11-11 02:49:54 +02:00
|
|
|
|
2021-04-08 11:28:38 +03:00
|
|
|
if [ ! -f "/usr/bin/xsel" ]; then
|
2021-04-08 11:17:33 +03:00
|
|
|
echo "Please install xsel"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2020-11-11 02:49:54 +02:00
|
|
|
url=$(curl -F"file=@$1" $remote)
|
2021-04-08 11:17:33 +03:00
|
|
|
echo "$url" | tr -d '\n' | xsel -ib
|
2020-11-11 02:49:54 +02:00
|
|
|
|
|
|
|
mpv $sound
|