Created
November 19, 2018 13:41
-
-
Save NeoTheFox/a25c76dd85bdf9bc92a08a4f0aed1cb3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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