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 make install
cd .. cd ..
rm -rf spotify-adblock rm -rf spotify-adblock
# Remove banner and upgrade button # Remove banner
cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps || exit # absolute path to Spotify cd "$(dirname "$(realpath -L "$(which spotify)")")"/Apps/ || exit # absolute path to Spotify
unzip xpui.spa xpui.js -d . bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js"
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
zip --update xpui.spa xpui.js zip --update xpui.spa xpui.js
rm xpui.js rm xpui.js
cd - > /dev/null || exit # Change shortcut
# Add desktop shortcut if [ -f /usr/share/applications/spotify.desktop ] ; then
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 sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
fi
# === Syncthing == # === Syncthing ==
systemctl enable syncthing@"$USER".service systemctl enable syncthing@"$USER".service
@ -311,7 +309,7 @@ then
usermod -aG docker "$USER" usermod -aG docker "$USER"
# === Unused icons == # === 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[@]}" for app in "${apps[@]}"
do do
if [ -f /usr/share/applications/"$app".desktop ] if [ -f /usr/share/applications/"$app".desktop ]