From 21f34813d29f8e3076d30609215d9d5c5e643178 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 14 Jul 2022 01:45:36 +0200 Subject: [PATCH] * Remove upgrade button for spotify * Change shortcut for spotify --- arch.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch.sh b/arch.sh index 500d5e0..7f92542 100644 --- a/arch.sh +++ b/arch.sh @@ -151,15 +151,17 @@ then make install cd .. rm -rf spotify-adblock - # 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" + # 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 zip --update xpui.spa xpui.js rm xpui.js - # 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 + 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 # === Syncthing == systemctl enable syncthing@"$USER".service @@ -309,7 +311,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") + 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") for app in "${apps[@]}" do if [ -f /usr/share/applications/"$app".desktop ]