Skip to content

Instantly share code, notes, and snippets.

@tonitch
Created January 3, 2024 10:30
Show Gist options
  • Save tonitch/5f2b2f0bb8ab999fa9f4b798cfb2c8c3 to your computer and use it in GitHub Desktop.
Save tonitch/5f2b2f0bb8ab999fa9f4b798cfb2c8c3 to your computer and use it in GitHub Desktop.
Display="DVI-D-0" #find it with xrandr
Stylusid=$(xinput | grep -Po 'Wacom (.*)' | grep -Po 'id=(\d*)' | grep -Po '\d*')
$(echo $Stylusid | tr ' ' '\n' | xargs -i xinput map-to-output {} $Display)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment