X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d..5c1ae3bc9c3a3cbed192fed2d68fc9b7bbe5c96f:/doc/disorder.1.in diff --git a/doc/disorder.1.in b/doc/disorder.1.in index a056d63..bd22e56 100644 --- a/doc/disorder.1.in +++ b/doc/disorder.1.in @@ -55,25 +55,25 @@ Display version number. List all known commands. .SH COMMANDS .TP -.B adduser \fIUSER PASSWORD\fR [\fIRIGHTS\fR] +.B adduser \fIUSERNAME PASSWORD\fR [\fIRIGHTS\fR] Create a new user. If \fIRIGHTS\fR is not specified then the \fBdefault_rights\fR setting from the server's configuration file applies. .TP -.B authorize \fIUSER\fR [\fIRIGHTS\fR] -Create \fIUSER\fR with a random password. -\fIUSER\fR must be a UNIX login user (not just any old string). +.B authorize \fIUSERNAME\fR [\fIRIGHTS\fR] +Create user \fIUSERNAME\fR with a random password. +User \fIUSERNAME\fR must be a UNIX login user (not just any old string). If \fIRIGHTS\fR is not specified then the \fBdefault_rights\fR setting from the server's configuration file applies. .IP -\fI~USER/.disorder/passwd\fR is created with the password in it, so the new +\fI~USERNAME/.disorder/passwd\fR is created with the password in it, so the new user should be able to log in immediately. .IP If writing the \fIpasswd\fR file fails then the user will already have been created in DisOrder's user database. Use \fBdisorder deluser\fR to remove them before trying again. .TP -.B deluser \fIUSER\fR +.B deluser \fIUSERNAME\fR Delete a user. .TP .B dirs \fIDIRECTORY\fR [\fB~\fIREGEXP\fR] @@ -85,7 +85,7 @@ Only directories with a basename matching the regexp will be returned. .B disable Disable playing after the current track finishes. .TP -.B edituser \fIUSER PROPERTY VALUE +.B edituser \fIUSERNAME PROPERTY VALUE Set some property of a user. .TP .B enable @@ -238,7 +238,7 @@ Unset the preference \fIKEY\fR for \fITRACK\fR. .B unset\-global \fIKEY\fR Unset the global preference \fIKEY\fR. .TP -.B userinfo \fIUSER PROPERTY +.B userinfo \fIUSERNAME PROPERTY Get some property of a user. .TP .B users @@ -299,6 +299,22 @@ if the full version is not present. .B unscratched The number of times the track has been played to completion without being scratched. +.TP +.B weight +The weight for this track. Weights are non-negative integers which determine +the relative likelihood of a track being picked at random (i.e. if track A has +twice the weight of track B then it is twice as likely to be picked at random). +A track with weight 0 will not be picked at random, though \fBpick_at_random\fR +is a more sensible way to configure this. +.IP +The default weight, used if no weight is set or the weight value is invalid, is +90000. Note that many other factors than track weight affect whether a track +will be played - tracks already in the queue will not be picked at random for +instance. +.IP +The maximum allowed weight is 2147483647. If you set a larger value it will be +clamped to this value. Negative weights will be completely ignored and the +default value used instead. .SH NOTES .B disorder is locale-aware. @@ -377,7 +393,7 @@ Per-user password file Communication socket for \fBdisorder\fR(1). .SH "SEE ALSO" \fBdisorderd\fR(8), \fBdisorder_config\fR(5), \fBsyslog\fR(3), \fBtime\fR(2), -\fBpcrepattern\fR(3), \fBdisobedience\fR(1) +\fBpcrepattern\fR(3), \fBdisobedience\fR(1), \fBdisorder.cgi\fR(8) .PP "\fBpydoc disorder\fR" for the Python API documentation. .\" Local Variables: