stumpwm.stumpwm-contrib/util/wacom
Eric Ihli e18bbad24d Add command to orient Wacom tablet to StumpWM frame
Adds a StumpWM command that detects orientation and dimensions
of the current frame and runs the appropriate `xsetwacom`
commands to map the Wacom tablet input to the frame.
2021-09-30 15:26:44 -05:00
..
package.lisp Add command to orient Wacom tablet to StumpWM frame 2021-09-30 15:26:44 -05:00
README.org Add command to orient Wacom tablet to StumpWM frame 2021-09-30 15:26:44 -05:00
wacom.asd Add command to orient Wacom tablet to StumpWM frame 2021-09-30 15:26:44 -05:00
wacom.lisp Add command to orient Wacom tablet to StumpWM frame 2021-09-30 15:26:44 -05:00

Wacom StumpWM

Installation

Like any other module: Add (load-module "wacom") somewhere in your .stumpwmrc.

Usage

Focus the frame you want to use your wacom tablet. Run map-wacom-to-current-frame.

One thing that can't be detected is the physical orientation of your device. Even if we could detect landscape/portrait mode, we can't know which way is right-side-up.

Parameters

There are a couple of parameters defined in wacom.lisp that you can edit to match the layout of your tablet on your desk.

(defparameter *portrait-rotate* "ccw"
  "If you notice the directions are the reverse of what you desirte when your
   frame is in portrait orientation, then change this parameter to 'cw'.")

(defparameter *landscape-rotate* "half"
  "If you notice directions are the reverse of what you desire when your
   frame is in landscape orientation, then change this parameter to 'none'.")