Compare commits

..

No commits in common. "bc1cfbb1bcdc73a247913637bfa965a452d4d0f5" and "38b933b08bd9e5251ec63518a9a19372373cfcbc" have entirely different histories.

2 changed files with 8 additions and 21 deletions

View file

@ -1,11 +0,0 @@
[Desktop Entry]
Type=Application
Name=Spotify (sans pubs)
GenericName=Music Player
Icon=spotify-client
TryExec=spotify
Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify --uri=%U
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify

18
arch.sh
View file

@ -151,17 +151,15 @@ then
make install
cd ..
rm -rf spotify-adblock
# Remove banner and upgrade button
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps || exit # absolute path to Spotify
unzip xpui.spa xpui.js -d .
sed -i 's/adsEnabled:!0/adsEnabled:!1/' xpui.js # disable empty ad block (banner)
sed -i 's/.\>\=1024/ 1!=1 /' xpui.js # disable Upgrade Buton
sed -i "s/((?:\"a\"))\S+noopener nofollow.+?,.)/\$1/" xpui.js # disable Premium NavLink button
# Remove banner
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify
bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
zip --update xpui.spa xpui.js
rm xpui.js
cd - > /dev/null || exit
# Add desktop shortcut
wget -q --show-progress https://git.kennel.ml/Anri/confOS/raw/branch/main/.local/share/applications/spotify.desktop -P "$HOME"/.local/share/applications/spotify.desktop
# Change shortcut
if [ -f /usr/share/applications/spotify.desktop ] ; then
sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
fi
# === Syncthing ==
systemctl enable syncthing@"$USER".service
@ -311,7 +309,7 @@ then
usermod -aG docker "$USER"
# === Unused icons ==
apps=("fish" "cmake-gui" "com.github.hluk.copyq" "electron17" "org.gnome.Evince" "avahi-discover" "bssh" "bvnc" "org.flameshot.Flameshot" "org.fontforge.FontForge" "lstopo" "htop" "micro" "qv4l2" "qvidcap" "x11-emoji-picker" "xdvi" "yelp" "spotify")
apps=("fish" "cmake-gui" "com.github.hluk.copyq" "electron17" "org.gnome.Evince" "avahi-discover" "bssh" "bvnc" "org.flameshot.Flameshot" "org.fontforge.FontForge" "lstopo" "htop" "micro" "qv4l2" "qvidcap" "x11-emoji-picker" "xdvi" "yelp")
for app in "${apps[@]}"
do
if [ -f /usr/share/applications/"$app".desktop ]