p A .Em property is like a variable assignment. It has a name, which goes to the left of the equal sign, and a value, which goes to the right. The assignment ends with a semicolon. It looks like: .Dl name = value;
p There is no difference between string or integer values when defining them. Booleans are specified as integers, where .Sq 0 means false and .Sq 1 stands for true. Even though, the program cares about this and will emit a warning if you have done an incorrect assignment. Note that it will not accept unrecognized names.
p A .Em mode is a type of block that defines how the program behaves when run in a specific mode. A mode inherits properties defined in the global scope. It has the following syntax: d -literal -offset indent mode mode_name { property1 = value1; ... propertyN = valueN; } .Ed
p Actually, there is only one recognized mode, the .Ql sel mode. .Ss Properties common to all modes The following properties can be defined in the global scope, thus affecting all modes, or inside the mode definition, to override global values. l -tag -width indent t device = pathname; The .Xr wsmouse 4 device name to use. Defaults to
a /dev/wsmouse . t nodaemon = boolean; Set to 1 to not fork in the background. t pidfile = basename; The basename of the pidfile used to control the process. Pidfiles are always created under
a /var/run , and have the .Sq .pid extension automatically added. By default it is set to daemon's program name. .El .Ss Properties specific to the sel mode The following properties are only useful when running in the .Em sel mode: l -tag -width indent t fifo = pathname; Specify an optional fifo where to redirect all mouse events, no matter if they have been processed. By default, no fifo is used. t lefthanded = boolean; Set to 1 to swap mouse buttons, specially useful for left handed users. t slowdown_x = integer; X axis slowdown. This positive integer specifies how many events in the vertical direction should be ignored before changing the current column. It defaults to 0. t slowdown_y = integer; Y axis slowdown. This positive integer specifies how many events in the horizontal direction should be ignored before changing the current row. It defaults to 3. t ttystat = pathname; .Xr wsdisplay 4 Ns 's notification device. Defaults to
a /dev/ttyEstat . You will not want to change this. t xconsole = integer; Virtual console number which holds the X server (if any). The argument specifies the console number (the same found in
a /dev/ttyE? ) . Unset by default. .El .Sh FILES l -tag -width /usr/share/examples/wsmoused/ -compact t Pa /etc/wsmoused.conf Default configuration file. t Pa /usr/share/examples/wsmoused/ Location of sample files. .El .Sh SEE ALSO .Xr wsdisplay 4 , .Xr wsmouse 4 , .Xr wsmoused 8 .Sh HISTORY The .Nm configuration file first appeared in .Nx 2.0 .