The script that finds out the right device id for the wacom stylus, now trims the last tab in the output format

master
jorgevasquezp 8 years ago
parent 0fe7bc366b
commit 56bb488cf4

@ -2,7 +2,7 @@
#wacom_id=10 #wacom_id=10
#makine #makine
#wacom_id="Wacom Intuos Pro M Pen stylus" #wacom_id="Wacom Intuos Pro M Pen stylus"
wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9].) wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9]. | sed 's/\t//')
xsetwacom --set "$wacom_id" button 2 3 xsetwacom --set "$wacom_id" button 2 3
xsetwacom --set "$wacom_id" button 3 2 xsetwacom --set "$wacom_id" button 3 2

Loading…
Cancel
Save