Skip to main content

Wacom Intuos tablet command mapping.

Project description

wacom_profile

This python script will allow you to control the modes of your Wacom Intuos Pro tablet touch ring in linux by clicking the button in the middle of the ring.

Installation

$ python -mpip install wacom_profile

Make sure you have xsetwacom installed in your operating system.

Usage

wacom_profile [-h] [-c /path/to/file.ini] [-p PROFILE] [-d]

Handle Wacom Intuos Pro 5 ring function swapping. You know, for kids.

optional arguments:
-h, --help            show this help message and exit
-c /path/to/file.ini  Configuration File. Default $HOME/.wacomProfile
-p PROFILE            Profile to execute.
-d                    Debug - Crank up the output

Config File Format

Default location is $HOME/.wacomProfile

Configuration is in argparse/INI format. The only required section is [defaults] and the only required option is device_id. This device_id can be found by running lsusb and copying the ID from the output there. See the example config.cfg file.

You must also supply at least one stanza for each profile you want to create.

[defaults]
device_id = XXXX:XXXX

Profiles

Profiles are defined in the config file in the section headers. For example:

[krita:0]
AbsWheelDown =  Button +4
AbsWheelUp = Button +5
Button 2 = key +ctrl +shift +z
Button 8 = key +ctrl +z
Button 9 = key +ctrl

This section header defines the actions that will be taken when -p krita is passed and the LED is in position 0 (upper-left corner).

LED Positions:

0 - Upper-left
1 - Upper-right
2 - Lower-right
3 - Lower-left

Buttons:

Button 2 - Upper top button
Button 3 - Middle top Button
Button 8 - Lower top Button

Button 9 -  Upper bottom button
Button 10 - Middle bottom button
Button 11 - Lower bottom button

TouchRing Actions:

AbsWheelUp - Scroll Up
AbsWheelDown - Scroll Down

You don't have to define all LED positions. No action will be taken if you select a mode that isn't defined.

Valid options in each section are either buttons or touchring actions. If you define a blank action (eg, "button 1 = "), that item is reset to tablet defaults.

See the example config.cfg for a working example.

If no profile is provided on the command line with -p, the script will look for a profile called "defaults".

Just Turrible

  • Unpredictable results if using multiple tablets. Do people even do that?
  • USB Stuff is mostly untested in most situations. It worked once for me, so it might work for you. Submit a bug if not.
  • Only works on Linux.
  • Uses lsusb and sysfs to get LED status. Anyone willing to help port over to pyusb, if possible, would be appreciated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wacom_profile-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

wacom_profile-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file wacom_profile-0.1.0.tar.gz.

File metadata

  • Download URL: wacom_profile-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for wacom_profile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d034297b46f1097322ff884640798995fd90a3f742cf6ef5a9ace156e9c15711
MD5 4d13a4768cbf234a2210b5560c0f02cb
BLAKE2b-256 6f7b501d8fcd3444f85a60036c92f44dad72a162929a0ac0d1877d69e70592f3

See more details on using hashes here.

File details

Details for the file wacom_profile-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wacom_profile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c26305773154962a1648916c9b9479773c503f680dd1571850aef9df2f85cb0
MD5 c02a00a53439a4076169e65e4d93112a
BLAKE2b-256 f6b5b1948c2230251228c520291e400d240d677d108e1d92a52986ff8b4cccd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page