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:
p .Dl name = value;
p There is no difference between string or integer values when defining them. The value must be surrounded by double quotes if it contains whitespace. 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 There are two recognized modes, .Ql action and .Ql selection . .Xr wsmoused 8 describes what they do in detail. .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 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 modes = string; Whitespace separated list of modes to be activated when running. Defaults to .Sq selection . 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. 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. t xconsole_delay = integer; Number of seconds to wait before reactivating the mouse when returning from the X console (specified by the .Sq xconsole property). Defaults to 5. .El .Ss Properties specific to the action mode The following properties are only useful when running in the .Em action mode: l -tag -width indent t button_<number>_<status> = "command"; Assigns a command to a button, which will be executed using the .Xr system 3 call. The .Sq number part selects a button to which the command is assigned; the first button is numbered .Sq 0 and the maximum depends on the mouse type. The .Sq status part can be either .Sq down or .Sq up , representing the events emitted when the button is pressed and released, respectively. .El .Ss Properties specific to the selection mode The following properties are only useful when running in the .Em selection mode: l -tag -width indent 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. .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 system 3 , .Xr wsdisplay 4 , .Xr wsmouse 4 , .Xr wsmoused 8 .Sh HISTORY The .Nm configuration file first appeared in .Nx 2.0 .