Skip to content

Commit

Permalink
feat: switch to rescrobbled from mpris-scrobbler
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Oct 28, 2023
1 parent 5f982a4 commit a842480
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
8 changes: 1 addition & 7 deletions config/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ modules:
- thunar
- nemo

- mpris-scrobbler

# - gnome-shell-extension-pop-shell
# - xprop
- gnome-shell-extension-blur-my-shell
Expand All @@ -61,11 +59,6 @@ modules:
- firefox # default firefox removed in favor of flatpak
- firefox-langpacks # langpacks needs to also be removed to prevent dependency problems

- type: systemd
user:
enabled:
- mpris-scrobbler.service

- type: bling # configure what to pull in from ublue-os/bling
install:
- fonts # selection of common good free fonts
Expand All @@ -87,6 +80,7 @@ modules:
- type: script
scripts:
# this sets up the proper policy & signing files for signed images to work
- rescrobbled.sh
- signing.sh

- type: fonts
Expand Down
13 changes: 13 additions & 0 deletions config/scripts/rescrobbled.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -oue pipefail

echo "Downloading latest rescrobbled binary"
curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/InputUsername/rescrobbled/releases/latest \
| jq .assets[0].browser_download_url \
| xargs wget -o /usr/bin/rescrobbled

echo "Downloading rescrobbled systemd unit"
wget https://raw.githubusercontent.com/InputUsername/rescrobbled/master/rescrobbled.service -o /usr/lib/systemd/user/rescrobbled.service

echo "Enabling rescrobbled systemd unit"
systemctl enable --global -f rescrobbled.service

0 comments on commit a842480

Please sign in to comment.