Comment 14 for bug 216347

Revision history for this message
In , GI (gi1242+debianbugs) wrote : Gtk+Perl alternative to wacomcpl

I've personally disliked wacomcpl for a long long time.

    1. Ugly Tcl interface
    2. It tries to be too smart and edits my ~/.xinitrc, and *ALWAYS*
       botches it.
    3. When "xsetwacom list dev" returns no devices, it borks.

Most of wacomcpl functionality can be done by RTFM + xsetwacom, so it's
not usually an issue. However, as pointed out here, stylus calibration
could use GUI to set the parameters.

So I wrote one :). I'm attaching a Gtk+perl script that helps
calibrating the stylus. If it doesn't get a list of devices from
'xsetwacom list dev', then it looks in the environment variables
'WACOM_*'.

It also doesn't touch your ~/.xinitrc. It only saves the calibration
parameters to ~/.calibrate.X (where X=1,2,3,4 depending on the tablet
rotation). It's up to the user to source (or not to source) these files
on startup. I personally automate by running

    WACOM_STYLUS=<name of your stylus device>
    tablet_rotation=$(xsetwacom get "$WACOM_STYLUS" Rotate)
    [[ -f ~/.calibrate.$tablet_rotation ]] && \
 source ~/.calibrate.$tablet_rotation

on startup, and every time the screen is rotated.

GI

--
'Snackmosphere' -- The 95% air inside a bag of chips.