ref: 6b37f1f49d86455b9e734e58167fd076b9a70081
parent: 11d352c22055fe42bfd77e044c2590bf1cb9a44f
author: kvik <[email protected]>
date: Thu May 7 12:51:20 EDT 2020
README -> README.md; add LICENSE
--- /dev/null
+++ b/LICENSE
@@ -1,0 +1,19 @@
+Copyright (c) 2020 [email protected]
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
--- a/README
+++ /dev/null
@@ -1,39 +1,0 @@
-# mousetrap(1) — filter for mouse events
-
-`mousetrap(1)` is designed to be interposed between a `nusb/kb(4)` mouse
-driver and the mouse event destination `/dev/mousein`, which provides an
-opportunity to intercept the "raw" mouse events and transform them
-before delivery to the rest of the system.
-
-Example transformations include remapping and hooking up arbitrary
-actions to buttons, which is mainly useful for devices with more buttons
-than the *Plan 9* recognizes. Yet another example might be filtering the
-pointer movement of overly sensitive devices.
-
-If you plan on using this you are expected to modify the source code to
-suit your devices and needs. Some example mappings are provided to
-help with this.
-
-## Usage
-
-`mousetrap(1)` can be installed into place, prior to running `nusb/kb(4)`
-using the `pipefile(1)` utility as follows:
-
- pipefile -r 'mousetrap -m elecom' /dev/mousein
- nusb/kb 9
-
-## TODO
-
-In the (near?) future `filterfs(4)` of some designation should be
-replace `pipefile(1)` as a more Plan9esque filtering solution. Sigrid
-of 9front works on this: https://git.sr.ht/~ft/filterfs
-
-Figure out a satisfactory way to integrate this kind of device filtering
-with the *9front* boot mechanism. Currently the `/sys/src/9/boot/nusbrc`
-has to be modified as per above and then a kernel has to be recompiled
-and installed for it to take effect. We agree this kinds of sucks.
-
-A temporary workaround, if you can get away with it, is `kill(1)`ing
-the `nusb/kb` that got assigned to your device at boot and restarting
-it manually. How to do this one is left as an exercise for the brave
-reader. HINT: `/dev/usbevent`.
--- /dev/null
+++ b/README.md
@@ -1,0 +1,39 @@
+# mousetrap(1) — filter for mouse events
+
+`mousetrap(1)` is designed to be interposed between a `nusb/kb(4)` mouse
+driver and the mouse event destination `/dev/mousein`, which provides an
+opportunity to intercept the "raw" mouse events and transform them
+before delivery to the rest of the system.
+
+Example transformations include remapping and hooking up arbitrary
+actions to buttons, which is mainly useful for devices with more buttons
+than the *Plan 9* recognizes. Yet another example might be filtering the
+pointer movement of overly sensitive devices.
+
+If you plan on using this you are expected to modify the source code to
+suit your devices and needs. Some example mappings are provided to
+help with this.
+
+## Usage
+
+`mousetrap(1)` can be installed into place, prior to running `nusb/kb(4)`
+using the `pipefile(1)` utility as follows:
+
+ pipefile -r 'mousetrap -m elecom' /dev/mousein
+ nusb/kb 9
+
+## TODO
+
+In the (near?) future `filterfs(4)` of some designation should be
+replace `pipefile(1)` as a more Plan9esque filtering solution. Sigrid
+of 9front works on this: https://git.sr.ht/~ft/filterfs
+
+Figure out a satisfactory way to integrate this kind of device filtering
+with the *9front* boot mechanism. Currently the `/sys/src/9/boot/nusbrc`
+has to be modified as per above and then a kernel has to be recompiled
+and installed for it to take effect. We agree this kinds of sucks.
+
+A temporary workaround, if you can get away with it, is `kill(1)`ing
+the `nusb/kb` that got assigned to your device at boot and restarting
+it manually. How to do this one is left as an exercise for the brave
+reader. HINT: `/dev/usbevent`.