From 56bb488cf4666e40bd7c4dbb1ee29eb6867ac05c Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 21 Nov 2017 11:38:51 -0800 Subject: [PATCH] The script that finds out the right device id for the wacom stylus, now trims the last tab in the output format --- bash/fix_wacom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index 4094e32..e841ef8 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -2,7 +2,7 @@ #wacom_id=10 #makine #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 3 2