Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
add rules for freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
q66 authored and mia-0 committed Apr 4, 2018
1 parent 3420f7d commit f827e6b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,24 @@ Usage
=====

This tool needs write access to the USB device. The mouse loses its settings
each time it is disconnected.
each time it is disconnected. Therefore, you will probably want to set up
``cadmousectl`` to run automatically. Each rules file needs to be modified
as necessary (the path to ``cadmousectl`` and the parameters).

On Linux, you probably want to set up udev rules to run this tool.
The file ``99-cadmouse.rules`` contains an example udev rule that
automatically runs cadmousectl whenever a CadMouse is plugged in.
Linux
~~~~~

Copy the ``rules/linux/99-cadmouse.rules`` file into ``/etc/udev/rules.d``
and reload ``udevd``.

FreeBSD
~~~~~~~

Copy the ``rules/freebsd/cadmouse.conf`` file into ``/usr/local/etc/devd``
and reload ``devd``.

Parameters
~~~~~~~~~~

cadmousectl [-[lprsS] value]

Expand Down
5 changes: 5 additions & 0 deletions rules/freebsd/cadmouse.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
attach 100 {
match "vendor" "0x256f";
match "product" "0xc650";
action "/usr/local/bin/cadmousectl -l 1 -p 1000 -r wheel:extra -s 164 -S 1";
};
File renamed without changes.

0 comments on commit f827e6b

Please sign in to comment.