Skip to content

Instantly share code, notes, and snippets.

@jmaupetit
Created August 23, 2019 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmaupetit/6649d8a84c2919c10fcc868a2575c842 to your computer and use it in GitHub Desktop.
Save jmaupetit/6649d8a84c2919c10fcc868a2575c842 to your computer and use it in GitHub Desktop.
Tizonia Spotify CLI (Linux only)
#!/bin/bash
USER_ID=$(id -u)
GROUP_ID=$(id -g)
docker run -it --rm -u ${USER_ID}:${GROUP_ID} \
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
--volume=${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse \
--volume="${HOME}/.config/tizonia":/home/tizonia/.config/tizonia \
--volume="${HOME}/.config/pulse/cookie":/home/tizonia/.config/pulse/cookie \
--name tizonia-$(date +%s) \
tizonia/docker-tizonia --spotify-allow-explicit-tracks "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment