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.conf
file. - Assign your Spotify nickname to the
username
variable.- 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 ofthemcmaciej
there 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
cat
command 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
bitrate
variable- E.g.
bitrate = 320
- E.g.
- Enable cache by setting
no_audio_cache = false
- Set
initial_volume
to a value between 0 and 100 for your initial volume- If
spotifyd -V
shows 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 ID
andClient Secret
and enter them in the spotify-qt login screen - In the terminal enter the
which spotifyd
and copy the value - Go to
Settings
>Spotify
and enter the copied value inClient Path
- Check
Start with app
, go toConfiguration
and checkUse global config
- In
General
click theStart client
or 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)