Created
August 23, 2019 07:52
-
-
Save jmaupetit/6649d8a84c2919c10fcc868a2575c842 to your computer and use it in GitHub Desktop.
Tizonia Spotify CLI (Linux only)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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