Skip to content

Commit 6dfb280

Browse files
committed
dietpi-software: Spotifyd: update config
No actual values are changed, but the commeted values, including some which have been removed upstream + reordering.
1 parent b256265 commit 6dfb280

File tree

1 file changed

+60
-54
lines changed

1 file changed

+60
-54
lines changed

.conf/dps_199/spotifyd.conf

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,33 @@
1-
# https://github.com/Spotifyd/spotifyd/blob/master/docs/src/config/File.md
1+
# https://github.com/Spotifyd/spotifyd/blob/master/contrib/spotifyd.conf
22
[global]
3-
# Your Spotify account name.
4-
#username = "username"
53

6-
# Your Spotify account password.
7-
#password = "password"
4+
#---------#
5+
# GENERAL #
6+
#---------#
87

9-
# A command that gets executed and can be used to
10-
# retrieve your password.
11-
# The command should return the password on stdout.
12-
#
13-
# This is an alternative to the `password` field. Both
14-
# can't be used simultaneously.
15-
#password_cmd = "command_that_writes_password_to_stdout"
8+
# The name that gets displayed under the connect tab on
9+
# official clients.
10+
#device_name = "device_name_in_spotify_connect"
11+
12+
# The displayed device type in Spotify clients.
13+
# Can be unknown, computer, tablet, smartphone, speaker, t_v,
14+
# a_v_r (Audio/Video Receiver), s_t_b (Set-Top Box), and audio_dongle.
15+
#device_type = "speaker"
1616

17-
# If set to true, `spotifyd` tries to look up your
18-
# password in the system's password storage.
17+
# The directory used to store credentials and audio cache.
18+
# Default: infers a sensible cache directory (e.g. on Linux: $XDG_CACHE_HOME)
1919
#
20-
# Note, that the `password` field will take precedence, if set.
21-
#use_keyring = true
20+
# Note: The file path does not get expanded. Environment variables and
21+
# shell placeholders like $HOME or ~ don't work!
22+
cache_path = "/mnt/dietpi_userdata/spotifyd/cache"
23+
24+
# If set to true, audio data does NOT get cached.
25+
# In this case, the cache is only used for credentials.
26+
#no_audio_cache = true
27+
28+
# The maximal size of the cache directory in bytes
29+
# The example value corresponds to ~ 1GB
30+
#max_cache_size = 1000000000
2231

2332
# If set to true, `spotifyd` tries to bind to dbus (default is the session bus)
2433
# and expose MPRIS controls. When running headless, without the session bus,
@@ -34,77 +43,74 @@ use_mpris = false
3443
# own the name.
3544
#dbus_type = "session"
3645

46+
#-----------#
47+
# DISCOVERY #
48+
#-----------#
49+
50+
# If set to true, this disables zeroconf discovery.
51+
# This can be useful, if one prefers to run a single-user instance.
52+
#disable_discovery = false
53+
54+
# The port at which `spotifyd` is going to offer its service over the network (TCP).
55+
# If not set, a random port > 1024 is used. For the service to be discoverable on the
56+
# local network via mDNS, both the mDNS port (5353 UDP) and the random or fixed
57+
# zeroconf port need to be allowed through any active firewall.
58+
#zeroconf_port = 1234
59+
60+
#-------#
61+
# AUDIO #
62+
#-------#
63+
3764
# The audio backend used to play music. To get
3865
# a list of possible backends, run `/opt/spotifyd/spotifyd --help`.
3966
backend = "alsa"
4067

4168
# The alsa audio device to stream audio. To get a
4269
# list of valid devices, run `aplay -L`,
43-
#device = "alsa_audio_device"
70+
#device = "default"
4471

4572
# The PCM sample format to use. Possible values
4673
# are F32, S32, S24, S24_3, S16.
4774
# Change this value if you encounter errors like
4875
# "Alsa error PCM open ALSA function 'snd_pcm_hw_params_set_format' failed with error 'EINVAL: Invalid argument'"
4976
#audio_format = "S16"
5077

51-
# The alsa control device. By default this is the same
52-
# name as the `device` field.
53-
#control = "alsa_audio_device"
54-
55-
# The alsa mixer used by `spotifyd`.
56-
#mixer = "PCM"
57-
5878
# The volume controller. Each one behaves different to
5979
# volume increases. For possible values, run
6080
# `/opt/spotifyd/spotifyd --help`.
6181
volume_controller = "alsa"
6282

63-
# A command that gets executed in your shell after each song changes.
64-
#on_song_change_hook = "command_to_run_on_playback_events"
83+
# ! Only relevant for ALSA !
84+
# The alsa control device. By default this is the same
85+
# name as the `device` field.
86+
#control = "default"
6587

66-
# The name that gets displayed under the connect tab on
67-
# official clients.
68-
#device_name = "device_name_in_spotify_connect"
88+
# ! Only relevant for ALSA !
89+
# The alsa mixer used by `spotifyd`.
90+
#mixer = "PCM"
6991

7092
# The audio bitrate. 96, 160 or 320 kbit/s
7193
#bitrate = 160
7294

73-
# The directory used to cache audio data. This setting can save
74-
# a lot of bandwidth when activated, as it will avoid re-downloading
75-
# audio files when replaying them.
76-
#
77-
# Note: The file path does not get expanded. Environment variables and
78-
# shell placeholders like $HOME or ~ don't work!
79-
cache_path = "/mnt/dietpi_userdata/spotifyd/cache"
80-
81-
# The maximal size of the cache directory in bytes
82-
# The example value corresponds to ~ 1GB
83-
max_cache_size = 1000000000
84-
85-
# If set to true, audio data does NOT get cached.
86-
#no_audio_cache = true
87-
8895
# Volume on startup between 0 and 100
89-
# NOTE: This variable's type will change in v0.4, to a number (instead of string)
90-
#initial_volume = "90"
96+
#initial_volume = 90
9197

9298
# If set to true, enables volume normalisation between songs.
9399
#volume_normalisation = true
94100

95101
# The normalisation pregain that is applied for each song.
96102
#normalisation_pregain = -10
97103

104+
#-------ä
105+
# OTHER #
106+
#-------#
107+
98108
# After the music playback has ended, start playing similar songs based on the previous tracks.
99-
autoplay = true
109+
# By default, `spotifyd` infers this setting from the user settings.
110+
#autoplay = true
100111

101-
# The port `spotifyd` uses to announce its service over the network.
102-
#zeroconf_port = 1234
112+
# A command that gets executed in your shell after each song changes.
113+
#on_song_change_hook = "echo \"hook executed on $PLAYER_EVENT\""
103114

104115
# The proxy `spotifyd` will use to connect to spotify.
105116
#proxy = "http://proxy.example.org:8080"
106-
107-
# The displayed device type in Spotify clients.
108-
# Can be unknown, computer, tablet, smartphone, speaker, t_v,
109-
# a_v_r (Audio/Video Receiver), s_t_b (Set-Top Box), and audio_dongle.
110-
device_type = "speaker"

0 commit comments

Comments
 (0)