changed the way the device ID gets recognized, to fit xsetwacom's new output format
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
|||||||
#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]. | sed 's/\t//')
|
#wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9]. | sed 's/\t//')
|
||||||
|
wacom_id=$(xsetwacom --list devices | grep stylus | grep 'id\: [0-9].' -o | grep [0-9]. -o)
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user