From 2a04659738376cff9cb3a6d43605fabacacf3fbf Mon Sep 17 00:00:00 2001 From: Jorge Vasquez Date: Tue, 1 Aug 2017 20:14:16 -0700 Subject: [PATCH] Changed the way the buttons get assignd, now it finds out which stylus is present and then applies changes to that one. --- bash/fix_wacom.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index 3feac92..4094e32 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -1,7 +1,8 @@ #casa #wacom_id=10 #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].) xsetwacom --set "$wacom_id" button 2 3 xsetwacom --set "$wacom_id" button 3 2