Skip to main content

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.

Metadata

Release files for wacom-profile 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wacom-profile 0.1.0
File Size Uploaded
wacom_profile-0.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wacom-profile 0.1.0
File Interpreter ABI Platform
wacom_profile-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / wacom_profile-0.1.0.tar.gz

Download URL wacom_profile-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d034297b46f1097322ff884640798995fd90a3f742cf6ef5a9ace156e9c15711
BLAKE2b-256 checksum
How to use checksums
6f7b501d8fcd3444f85a60036c92f44dad72a162929a0ac0d1877d69e70592f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / wacom_profile-0.1.0-py3-none-any.whl

Download URL wacom_profile-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c26305773154962a1648916c9b9479773c503f680dd1571850aef9df2f85cb0
BLAKE2b-256 checksum
How to use checksums
f6b5b1948c2230251228c520291e400d240d677d108e1d92a52986ff8b4cccd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page