From b7a25e7de90f44ee2e4d0d79a2043a7ad00c0bb4 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Mon, 2 Jul 2018 10:55:49 -0700 Subject: [PATCH] changed the way the device ID gets recognized, to fit xsetwacom's new output format --- 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 e841ef8..d48fbf5 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -2,7 +2,8 @@ #wacom_id=10 #makine #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 3 2