Created
May 27, 2018 18:04
-
-
Save sdomi/778b98ca8954bef716051150b1c1a864 to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
xsetwacom --set "Wacom Bamboo Connect Pen stylus" MapToOutput 1280x1024+0+0 | |
while true; do | |
sudo evtest --query /dev/input/event2 EV_KEY KEY_LEFTMETA | |
if [[ $? == 10 ]]; then | |
xdotool mousedown 1 | |
else | |
xdotool mouseup 1 | |
fi | |
sleep 0.05 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment