Skip to content

Instantly share code, notes, and snippets.

@NeoTheFox
Created November 19, 2018 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeoTheFox/a25c76dd85bdf9bc92a08a4f0aed1cb3 to your computer and use it in GitHub Desktop.
Save NeoTheFox/a25c76dd85bdf9bc92a08a4f0aed1cb3 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -z "$1" ]
then
echo "No argument supplied"
else
export DISPLAY=$1
fi
if pgrep Xorg > /dev/null
then
/usr/local/bin/mapwacom.sh --device-regex="Wacom One by Wacom S Pen [se].*" --screen="DisplayPort-0"
echo "The tablet is now mapped"
else
echo "No Xorg running"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment