Skip to content

Instantly share code, notes, and snippets.

@jetfir3
jetfir3 / uninstallify.sh
Last active November 21, 2023 19:10
Uninstallify -- remove Spotify + app/cache data
#!/usr/bin/env bash
# Uninstallify -- remove Spotify + app/cache data
case $(uname | tr '[:upper:]' '[:lower:]') in
darwin*) platformType='macOS' ;;
*) platformType='Linux' ;;
esac
command pgrep [sS]potify 2>/dev/null | xargs kill -9 2>/dev/null
@jetfir3
jetfir3 / spotx-bash_updater.sh
Last active October 11, 2023 14:33
SpotX-Bash Updater (Linux via APT/deb)
#!/usr/bin/env bash
# The following script can run as a cron job to auto-update Spotify/SpotX-Bash
# Only "Debian-based" Linux distros using APT are supported
# Line #7 can be customized to set SpotX-Bash arguments
params="-h"
# Check for APT dependency and set default deb install location
command -v apt >/dev/null || { echo -e "Error: Debian-based Linux distro with APT support is required" >&2; exit 1; }
@jetfir3
jetfir3 / spotx-bash_updater.sh
Last active October 11, 2023 14:34
SpotX-Bash Updater (macOS)
#!/usr/bin/env bash
# The following script can run as a cron job to auto-update Spotify/SpotX-Bash
# Lines #6 and #7 can be customized to set Spotify.app location and SpotX-Bash arguments
appDir="/Applications/"
params="-Bh"
# Get macOS version
macOSVer=$(sw_vers -productVersion)
@jetfir3
jetfir3 / tmpdevmodify.sh
Last active April 27, 2024 11:17
Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
#!/usr/bin/env bash
# Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
showHelp () {
echo -e \
"Usage: ./tmpdevmodify.sh [option]\n
Options:
-c, --clearcache Clear Spotify app cache
-d, --debug Add Debug Tools to user dropdown menu