Last active
February 21, 2022 16:41
-
-
Save Semmu/96039c0dd02e0a146358358dc833f4af to your computer and use it in GitHub Desktop.
my xsetwacom commands
This file contains 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
# setup keybinding for those 4 buttons | |
xsetwacom --set "Wacom Bamboo Pad pad" Button 1 "key +ctrl z -ctrl" # < | |
xsetwacom --set "Wacom Bamboo Pad pad" Button 3 "key backspace" # > | |
xsetwacom --set "Wacom Bamboo Pad pad" Button 1 "key +ctrl s -ctrl" # FN1 | |
xsetwacom --set "Wacom Bamboo Pad pad" Button 3 "key +super up -super" # FN2 | |
# map to output | |
export $STYLUSID=$(xinput list | grep stylus | cut -c 55-57) | |
export $ERASERID=$(xinput list | grep eraser | cut -c 55-57) | |
export $DISPLAYID= # run xrandr and substitute needed display id here, like HDMI-1, DP-1-2 or eDP-1 | |
xsetwacom set $STYLUSID MapToOutput $DISPLAYID # map stylus to screen | |
xsetwacom set $ERASERID MapToOutput $DISPLAYID # map eraser (other end of the stylus) to screen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment