Listening to Spotify fully open-source way
Hi, in this article I am going to show you how to listen to Spotify using only open-source software.
First of all you need to install those two packages:
- spotifyd
- spotify-qt
Second of all you need to configure spotifyd.
- Create if not present, and edit the
~/.config/spotifyd/spotifyd.conffile. - Assign your Spotify nickname to the
usernamevariable.- To get your nickname open
open.spotify.com. - Click on your profile icon and select
Profile. - Click on three dots and select
Copy link to profile -
https://open.spotify.com/user/themcmaciej?si=496a60d5280d4360- in place ofthemcmaciejthere will be your nickname
- To get your nickname open
- Provide your password. There are three ways to do this.
-
password- just put your password in the config -
password_cmd- provide a command that would output on STDOUT your password- You can use the
catcommand to print your password from the file -cat /.config/spotifyd/.env
- You can use the
-
use_keyring- your password is being taken from the system's keyring
-
- Set bitrate using the
bitratevariable- E.g.
bitrate = 320
- E.g.
- Enable cache by setting
no_audio_cache = false - Set
initial_volumeto a value between 0 and 100 for your initial volume- If
spotifyd -Vshows you version lower than 0.4 use string as a value -initial_volume = "45" - If it displays a version equal to or higher than 0.4 use an integer as a value -
initial_volume = 45
- If
For example of spotifyd.conf you may want to check out my dotfiles repository.
Last but not least, you need to set up spotify-qt.
- Go to https://developer.spotify.com/dashboard/
- Create a new app
- Copy
Client IDandClient Secretand enter them in the spotify-qt login screen - In the terminal enter the
which spotifydand copy the value - Go to
Settings>Spotifyand enter the copied value inClient Path - Check
Start with app, go toConfigurationand checkUse global config - In
Generalclick theStart clientor restart an app.
And that's it, enjoy your fully libre Spotify experience :D
License
Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.0)
Top comments (0)