Skip to content

Instantly share code, notes, and snippets.

@carlosrabelo
Created July 25, 2019 21:51
Show Gist options
  • Save carlosrabelo/1e4e9bcea752dd89943c6fc82ac9d402 to your computer and use it in GitHub Desktop.
Save carlosrabelo/1e4e9bcea752dd89943c6fc82ac9d402 to your computer and use it in GitHub Desktop.
#!/bin/sh
MONITOR="DP-1"
ID_STYLUS=`xinput | grep "HUION Huion Tablet Pen stylus" | cut -f 2 | cut -c 4-5`
# ID_STYLUS=`xinput | grep "Wacom Intuos S Pen stylus" | cut -f 2 | cut -c 4-5`
xinput map-to-output $ID_STYLUS $MONITOR
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment