mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 13:18:35 -06:00
added check for connection
This commit is contained in:
parent
9564ced456
commit
bcb2963fc9
1 changed files with 5 additions and 0 deletions
|
@ -17,6 +17,11 @@
|
|||
# Make sure to install xf86-input-wacom (might have to restart)
|
||||
# Add this script to autostart of your DE or .profile or somehow make it run at boot (so that it works in case the tablet is connected at boot)
|
||||
|
||||
if [ $(xsetwacom --list | grep -c "HID 256c:006d") -ne "2" ]; then
|
||||
echo "No supported devices found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
xsetwacom --set 'HID 256c:006d Pen stylus' Button 2 "2" # middle mouse button
|
||||
|
|
Loading…
Reference in a new issue