Add info about --rules flag in README instructions

This commit is contained in:
Eric Jiang 2021-02-20 17:39:11 -08:00
parent 4afc1a2d51
commit 6d090cf00e

View File

@ -21,7 +21,11 @@ Inspiroy Q620M, and potentially other tablets.
4. Run the `xdo_build.py` script. It should create a file named `_xdo_cffi.cpython-...-linux-gnu.so`. 4. Run the `xdo_build.py` script. It should create a file named `_xdo_cffi.cpython-...-linux-gnu.so`.
5. Run `huion_keys.py`. It will create an example config file at `~/.config/huion_keys.conf`. 5. Run `huion_keys.py`. It will create an example config file at `~/.config/huion_keys.conf`.
6. Edit the config file to set up your key bindings. See the below section for more instructions. 6. Edit the config file to set up your key bindings. See the below section for more instructions.
7. Run `huion_keys.py` as root or give yourself read permission for your tablet's hidraw file. For example: 7. Install the udev rules to set up permissions for the tablet. This program
can generate the udev rules for you, so you can do something like:
`python huion_keys.py > /etc/udev/rules.d/50-huion-tablet.rules`
Alternatively, you can run `huion_keys.py` as root or give yourself read permission for your tablet's hidraw file. For example:
`chmod o+r /dev/hidraw3` `chmod o+r /dev/hidraw3`
8. When you push your tablet's buttons or swipe the scroll strips, this program should display information about what's going on. 8. When you push your tablet's buttons or swipe the scroll strips, this program should display information about what's going on.