Skip to content

Instantly share code, notes, and snippets.

@Semmu
Last active February 21, 2022 16:41
Show Gist options
  • Save Semmu/96039c0dd02e0a146358358dc833f4af to your computer and use it in GitHub Desktop.
Save Semmu/96039c0dd02e0a146358358dc833f4af to your computer and use it in GitHub Desktop.
my xsetwacom commands
# 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