Created
February 3, 2023 17:37
-
-
Save P-Louw/c82f517058cb1d29366ffa3072f8f3df to your computer and use it in GitHub Desktop.
Rotate wacom tablet, assumes there is just a single tablet connected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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