Skip to content

Instantly share code, notes, and snippets.

@P-Louw
Created February 3, 2023 17:37
Show Gist options
  • Save P-Louw/c82f517058cb1d29366ffa3072f8f3df to your computer and use it in GitHub Desktop.
Save P-Louw/c82f517058cb1d29366ffa3072f8f3df to your computer and use it in GitHub Desktop.
Rotate wacom tablet, assumes there is just a single tablet connected.
#!/usr/bin/bash
<<COMMENT
Rotate wacom device:
- Date: 2022-09-11
- Device: 'Wacom one M'
- Requires
- xsetwacom
- xrandr
- xinput
Rotates wacom tablet orientation, for left handed.
This is done by changing the stylus device.
COMMENT
STYLUS_ID=$(xsetwacom list devices | sed -n '/stylus/p' | grep -Eo '[0-9]{1,2}')
xsetwacom --set $STYLUS_ID Rotate half
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment