2 .\" Copyright (C) 2004, 2005, 2006 Richard Kettlewell
4 .\" This program is free software; you can redistribute it and/or modify
5 .\" it under the terms of the GNU General Public License as published by
6 .\" the Free Software Foundation; either version 2 of the License, or
7 .\" (at your option) any later version.
9 .\" This program is distributed in the hope that it will be useful, but
10 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
11 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 .\" General Public License for more details.
14 .\" You should have received a copy of the GNU General Public License
15 .\" along with this program; if not, write to the Free Software
16 .\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 disorder \- DisOrder jukebox client
34 Without the \fB--length\fR option,
36 is used to query the \fBdisorderd\fR(8) daemon from the command line.
37 It may be used to request tracks, scratch tracks, query the current
38 state, etc, and by an administrator to shutdown or reconfigure the
41 If no commands are specified then \fBdisorder\fR connects to the
42 daemon and then immediately disconnects. This can be used to test
43 whether the daemon is running. Otherwise, it executes the commands
47 .B --config \fIPATH\fR, \fB-c \fIPATH
48 Set the configuration file. The default is
49 .IR pkgconfdir/config .
55 Display a usage message.
58 Calculate the length in seconds of the files specified using the tracklength
61 .B --version\fR, \fB-V
62 Display version number.
64 .B --help-commands\fR, \fB-H
65 List all known commands.
68 .B dirs \fIDIRECTORY\fR [\fB~\fIREGEXP\fR]
69 List all the directories in \fIDIRECTORY\fR.
71 An optional regexp may be specified, marked with an initial \fB~\fR. Only
72 directories with a basename matching the regexp will be returned.
75 Disables playing after the current track finishes.
80 .B files \fIDIRECTORY\fR [\fB~\fIREGEXP\fR]
81 List all the files in \fIDIRECTORY\fR.
83 An optional regexp may be specified, marked with an initial \fB~\fR. Only
84 files with a basename matching the regexp will be returned.
86 .B get \fITRACK\fR \fIKEY\fR
87 Display the preference \fIKEY\fR for \fITRACK\fR.
89 .B get-global \fIKEY\fR
90 Get a global preference.
93 Displays the current volume settings.
96 Reports the length of \fITRACK\fR in seconds.
99 Writes event log messages to standard output, until the server is terminated.
100 See \fBdisorder_protocol\fR (5) for details of the output syntax.
102 .B move \fITRACK\fR \fIDELTA\fR
107 within the queue. Positive values move towards the head of the queue, negative
108 values towards the tail.
110 Note that if you specify a negative value then the
112 option separate (before all commands) becomes mandatory, as otherwise the
113 negative value is misinterpreted an an option.
115 .B part \fITRACK\fR \fICONTEXT\fI \fIPART\fR
116 Get a track name part.
118 \fICONTEXT\fR should be either \fBsort\fR or \fBdisplay\fR. \fBpart\fR is the
119 part of the name desired, typically \fBartist\fR, \fBalbum\fR or \fBtitle\fR.
122 Pause the current track. (Note that not all players support pausing.)
124 .B play \fITRACKS\fR...
125 Add \fITRACKS\fR to the end of the queue.
128 Report the currently playing track.
131 Display all the preferences for \fITRACK\fR.
134 List the current queue. The first entry in the list is the next track to play.
143 List recently played tracks. The first entry is the oldest track, the last
144 entry is the most recently played one.
146 .B remove \fITRACK\fR
147 Remove a track from the queue.
149 .B resolve \fITRACK\fR
150 Resolve aliases for \fITRACK\fR and print out the real track name.
153 Resume the current track after a pause.
156 Report the RTP brodcast address used by the server (if any).
159 Scratch the currently playing track.
161 .B scratch-id \fIID\fR
162 Scratch the currently playing track, provided it has the given ID.
164 .B search \fITERMS\fR
165 Search for tracks containing all of the listed terms. The terms are
166 separated by spaces and form a single argument, so must be quoted,
169 .B "disorder search 'bowie china'"
171 You can limit the search to tracks with a particular tag, too, using the
172 \fBtag:\fR modifier. For example:
174 .B "disorder search 'love tag:depressing'"
176 .B set \fITRACK\fR \fIKEY\fR \fIVALUE\fR
177 Set the preference \fIKEY\fR for \fITRACK\fR to \fIVALUE\fR.
179 .B set-global \fIKEY\fR \fIVALUE\fR
180 Set a global preference.
182 .B set-volume \fBLEFT\fR \fBRIGHT\fR
186 List server statistics.
191 .B unset \fITRACK\fR \fIKEY\fR
192 Unset the preference \fIKEY\fR for \fITRACK\fR.
194 .B unset-global \fIKEY\fR
195 Unset the global preference \fIKEY\fR.
198 Report the daemon's version number.
204 tracks may be specified by name or by ID. If you use the name and a track
205 appears twice in the queue it is undefined which is affected.
206 .SS "Privileged Commands"
207 These commands are only available to privileged users.
213 Make the daemon reload its configuration file.
216 Rescan the filesystem for new tracks. There is an automatic daily rescan but
217 if you've just added some tracks and want them to show up immediately, use this
221 Shut down the daemon.
223 Currently the following preferences are supported. Some are expected
224 to be set by users, others updated automatically by plugins.
227 If this preference is present and set to "0" then the track will not
228 be picked for random play. Otherwise it may be.
231 A decimal integer giving the number times the track was played. This
232 includes tracks that are scratched or were picked at random.
235 The last time the track was played, as a \fBtime_t\fR converted to a
239 The number of times the track has been scratched.
242 A decimal integer giving the number of times the track was requested.
243 (Tracks that are removed before being played are not counted.)
246 Tags that apply to this track, separated by commas. Tags can contain any
247 printing character except comma. Leading and trailing spaces are not
248 significant but internal spaces are.
254 global preferences, it is possible to limit the tracks that will be selected at
257 .B trackname_\fICONTEXT\fB_\fIPART\fR
258 These preferences can be used to override the filename parsing rules
259 to find a track name part. For backwards compatibility,
260 \fBtrackname_\fIPART\fR will be used if the full version
264 The number of times the track has been played to completion without
266 .SH "Superuser Commands"
267 These commands will (generally) only work for root, who must be a privileged
270 .B authorize \fIUSER\fR
271 Chooses a password for \fIUSER\fR and adds it to \fIconfig.private\fR. Also
272 creates an appropriate \fIconfig.USER\fR, be owned by the user.
274 If at least one \fBauthorize\fR command succeeds then the server is
275 automatically told to re-read its configuration.
278 is locale-aware. If you do not set the locale correctly then it may
279 not handle non-ASCII data properly.
281 The client determines which user to attempt to authenticate as by
282 examining the current UID.
284 This program is not intended to run in a setuid environment.
286 The regexp syntax used by the \fBfiles\fR and \fBdirs\fR commands use the
287 syntax described in \fBpcrepattern\fR(3). Matching is case-independent. It is
288 strongly recommended that you quote regexps, since they often contain
289 characters treated specially by the shell. For example:
291 .B "disorder dirs /Music ~'^(?!the [^t])t'"
293 If you cannot play a track, or it does not appear in the database even after a
294 rescan, check the following things:
297 Are there any error messages in the system log? The server logs to
298 \fBLOG_DAEMON\fR, which typically ends up in
299 .I /var/log/daemon.log
301 .IR /var/log/messages ,
302 though this depends on local configuration.
305 Is the track in a known format? Have a look at
307 for the formats recognized by the local installation. The filename matching is
311 Do permissions on the track allow the server to read it?
314 Do the permissions on the containing directories allow the server to read and
317 The user the server runs as is determined by the \fBuser\fR directive in the
318 configuration file. The README recommends using \fBjukebox\fR for this purpose
319 but it could be different locally.
323 The default username.
326 The user's home directory.
328 .B LC_ALL\fR, \fBLANG\fR, etc
329 Current locale. See \fBlocale\fR(7).
333 Global configuration file. See \fBdisorder_config\fR(5).
335 .I ~/.disorder/passwd
336 Per-user password file
338 .I pkgstatedir/socket
339 Communication socket for \fBdisorder\fR(1).
341 \fBdisorderd\fR(8), \fBdisorder_config\fR(5), \fBsyslog\fR(3), \fBtime\fR(2),
342 \fBpcrepattern\fR(3), \fBdisobedience\fR(1)
344 "\fBpydoc disorder\fR" for the Python API documentation.