Compare commits

..

No commits in common. "9366385324231b03855d1b92310c4edc5ba26b57" and "d49bdfb70c3f67512b4d671af050127b4cfedc37" have entirely different histories.

5 changed files with 4 additions and 22 deletions

View file

@ -1,5 +0,0 @@
#!/bin/sh
/usr/bin/rescrobbled &
/usr/bin/spotify
kill -9 $(pgrep -f rescrobbled)
exit

View file

@ -1,6 +0,0 @@
#!/bin/sh
emerge --search "$1" --fuzzy-search n \
| grep "Description" \
| head -1 \
| cut -d":" -f2 \
| awk '{$1=$1;print}'

View file

@ -1,15 +1,10 @@
#!/bin/sh #!/bin/sh
if [[ ! $1 ]]; then api_url="https://api.listenbrainz.org/1/user/$1/playing-now"
user="siinamonster"
else
user="$1"
fi
api_url="https://api.listenbrainz.org/1/user/$user/playing-now" if [[ ! $1 ]]; then 1="siinamonster"; fi
data=$(curl -s $api_url | jq -r '.payload.listens[0].track_metadata') read artist track < <(echo $(curl -s $api_url | \
artist=$(echo "$data" | jq '.artist_name' | tr -d '"') jq -r '.payload.listens[0].track_metadata | .artist_name, .track_name'))
track=$(echo "$data" | jq '.track_name' | tr -d '"')
if [[ "$artist" != "null" ]]; then if [[ "$artist" != "null" ]]; then
echo "$artist" - "$track" echo "$artist" - "$track"

View file

@ -2,5 +2,3 @@
# Link some stuff to /usr/local/bin for ease of access with menus # Link some stuff to /usr/local/bin for ease of access with menus
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi
ln -s $(pwd)/apsalar/audacious /usr/local/bin/audacious ln -s $(pwd)/apsalar/audacious /usr/local/bin/audacious
ln -s $(pwd)/apsalar/spotify /usr/local/bin/spotify

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB