-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsample.conf
More file actions
81 lines (74 loc) · 2.21 KB
/
sample.conf
File metadata and controls
81 lines (74 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# general stuff
[general]
# set the verbosity level (0 - 5)
verbosity = 1
# set the logfile (if not defined it is stderr)
#logfile = /var/log/mpdinfo.log
# set the mpd host address
host = "localhost"
# set the mpd port (default: 6600)
port = 6600
# length of the timebar
timebar = 20
# update timer
update = 30
# basic logical modules
# a token has a name, a type and the token strings a and b
[token_decision]
# name is the identifier for the token (don't forget the % at the beginning and ending)
name = "%a_t%"
# type of the decision token.
# Supported:
# IF - output the yes string when the condition string has at least one non isspace character.
type = "IF"
# condition string
condition = "%artist%%title%"
# when condition is not empty
yes = "%artist% - %title%"
# when condition is empty
no = "%filename%"
# output category
# current format tokens
# %status% - current status (playing, pause, stopped)
# %artist% - artist of the current track
# %title% - title of the current track
# %volume% - current output volume
# %filename% - name of the current file
# %elapsed_time% - time the current song is running
# %queue_length% - length of the current queue
# %timebar% - a simple progress bar of the current track
[output]
# you can prefix every output with the prefix option.
# So you can easily add format strings.
prefix = "\f"
# you can also suffix
suffix = "\n"
# format when status is paused
pause = "%status%\n%artist% - %title% (%filename%)"
# format when status is playing
play = "%status% (%queue_length%)\n%a_t%\nVolume: %volume%\n%elapsed_time% %timebar% %duration%"
# format when status is stopped
stop = "%dbupdate%%repeat%-%status%-%random%"
# defines the output for the database update flag.
# When database isn't updating then the none will shown.
# When an update is running you can define for every state
# (play, pause, stop) the output text
[token_dbupdate]
stop = "[Upd]"
none = " "
play = "[Upd]"
pause = "[Upd]"
# defines the output for the repeat flag.
# See token_dbupdate for more infos.
[token_repeat]
stop = "Repeat: on"
none = ""
play = "[Rp]"
pause = "[Rp]"
# defines the output for the random flag.
# See token_dbupdate for more infos.
[token_random]
stop = "Random: on\n"
none = ""
play = "[Rnd]"
pause = "[Rnd]"