Make AddMouseRegion's index unsigned
[dockapps.git] / wmix / wmix.1x
blob1b2d54efff9a00c7cd360952043d483743198725
1 .TH wmix 1x "3.2" "Fredrik Steen"
2 .SH NAME
3 wmix \- Dockapp mixer for OSS or ALSA
5 .SH SYNOPSIS
6 .B wmix
7 .RI [ options... ]
8 .br
9 .B wmix
10 .I \-h
12 .SH DESCRIPTION
13 Docked application to control audio mixer for OSS or ALSA.
14 Allows toggling record source,
15 muting individual channels, adjusting volume and balance, all in a
16 compact dockapp size, with TV\-like on\-screen\-display for volume levels.
17 .LP
18 Supports mouse wheel to adjust current channel's volume,
19 supports also the volume control keys on \(lqmultimedia\(rq keyboards
20 and can be controlled remotely with unix signals
21 .IR SIGUSR1 / SIGUSR2
22 to raise/lower the volume.
23 Keeps a simple configuration file for user\-defined settings.
25 .SH OPTIONS
26 .TP
27 \fB\-d\fR <\fIdisplay\fP>
28 Connect to remote X display
29 .TP
30 \fB\-e\fR <\fIname\fP>
31 Exclude channel from control (see
32 .SM
33 .B "CHANNEL NAMES"
34 below)
35 .TP
36 \fB\-f\fR <\fIfile\fP>
37 Use config file instead of
38 .I ~/.wmixrc
39 .TP
40 \fB\-h\fR
41 Display list of command\-line options
42 .TP
43 \fB\-k\fR
44 Disable grabbing the audio volume control keys on keyboard (see
45 .SM
46 .B BUGS
47 below)
48 .TP
49 \fB\-m\fR <\fIdevice\fP>
50 Use specified mixer device instead of
51 .I /dev/mixer
52 .TP
53 \fB\-v\fR
54 Verbose start, report detected channels
56 .SH CONFIGURATION FILE
57 If readable, the file \fI~/.wmixrc\fP (or the file specified through \fB\-f\fR option)
58 is read on startup.
59 It may contains one configuration command per line:
60 .TP
61 device=<\fImixer_device\fP>
62 defines the device file to use instead of \fB/dev/mixer\fP
63 .TP
64 exclude=<\fIchannel_name\fP>
65 exclude the specified channel from control, you can use it as many times as needed (see
66 .SM
67 .B "CHANNEL NAMES"
68 below)
69 .TP
70 mousewheel=<\fI0\fP|\fI1\fP>
71 when set to \fI0\fP, disable the volume control through mouse wheel (default=\fI1\fP)
72 .TP
73 osd=<\fI0\fP|\fI1\fP>
74 when set to \fI0\fP, disable display of the volume in an OSD like fashion (default=\fI1\fP)
75 .TP
76 osdcolor=<\fIcolor\fP>
77 specify the color to use for OSD volume display.
78 It can be the name of a color (see \fI/usr/share/X11/rgb.txt\fP)
79 or an RGB specification (as \fBrgb:\fP<\fIred\fP>/<\fIgreen\fP>/<\fIblue\fP>
80 with hexadecimal numbers) as expected by X11 (default=\fIgreen\fP)
81 .TP
82 scrolltext=<\fI0\fP|\fI1\fP>
83 when set to \fI0\fP, disable text scrolling to display the name of current selected
84 channel, use static short name instead (default=\fI1\fP)
85 .TP
86 wheelbtn1=<\fIbutton\fP>
87 .TQ
88 wheelbtn2=<\fIbutton\fP>
89 defines the buttons events associated in X11 to the mouse wheel,
90 with \fIbtn1\fP for up and \fIbtn2\fP for down
91 (default: btn1=\fI4\fP and btn2=\fI5\fP)
92 .TP
93 wheelstep=<\fIpercentage\fP>
94 sets the volume change step when using the mouse wheel,
95 specified as a percentage of the total volume range (i.e.: 1\~<\~\fIvalue\fP\~<\~100,
96 default=\fI3\fP)
97 .br
98 For compatibility, values between 0.0 and 1.0 will be considered as a raw percentage
99 .LP
100 You may include comments in the file using the character # in which case
101 everything will be ignored from the character to the end of the line.
103 .SH CHANNEL NAMES
104 The names for the different channels are provided by ALSA/OSS as short names, for which
105 .B wmix
106 provides a long name match for readability.
107 The default behavior is to scroll the long name of the current channel
108 in the text line of the dockapp, but if you disable the scroll text
109 then the short name will be displayed instead.
111 If you want to exclude a channel from the list of channels controlled by
112 the dockapp you have to use the short name.
113 You can get the list of all the channels available in your sound card with
114 .B wmix -v
115 and the short name will be between parentheses, here is an example:
118 Supported channels:
119   1: Master volume      (Vol  )
120   2: PC Speaker         (Spkr )
121   3: PCM Wave 2 volume  (Pcm2 )
122   4: Input gain         (IGain)
123   5: Phone output       (PhoneOut)
126 .SH FILES
128 .I ~/.wmixrc
129 User configuration file (change with option
130 .BR \-f )
132 .I ~/.wmix.pid
133 Contains process id of wmix, in case you'd need it for
134 .IR SIGUSR1 / SIGUSR2
135 volume control
137 .I /dev/mixer
138 Device used for controlling volume (change with option
139 .BR \-m " or with command " device " in the config file)"
141 .I /usr/share/doc/wmix/README
142 More information on the user interface
144 .SH BUGS
145 The \fImute\fP functionality is implemented by setting the volume to 0
146 and remembering the previous volume to restore it when unmuting.
147 While this is perfectly ok, you may encounter strange looking behavior
148 if you have other application controlling the volume, and possibly
149 implementing mute in similar ways, because there is no way to know
150 that a channel has been muted.
152 The X server allows only one application at a time to place a grab on a key,
153 so if another application already claimed the volume control keys then \fBwmix\fP
154 will warn you about it and continue without the functionality.
155 If on the other hand you encounter problem with applications that do
156 not work because they could not grab these keys (a typical symptom is
157 an X Error of type \fIBadAccess\fP with major opcode 33 \fIX_GrabKey\fP),
158 you can ask \fBwmix\fP to not grab them using the command line option
159 \fB-k\fP.
161 If you modify the configuration file, do not expect \fBwmix\fP to reload
162 it automatically, this is considered a too costly feature for such a
163 small application.
165 .SH AUTHORS
166 This man page was written by Fredrik Steen <stone@debian.org> for the Debian
167 distribution.
168 It was expanded by Christophe CURIS for the Window Maker Dev Team.
170 wmix was written by Tim, timecop <timecop@japan.co.jp>,
171 with some code by Daniel Richard G. <skunk@mit.edu>
172 and some addition by Christophe CURIS.