From 2fce30d65adae36fe0a69dc366870212afd1f5b1 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Wed, 11 Nov 2020 15:42:41 +0100 Subject: wacom.sh multiple devices --- scripts/wacom.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/wacom.sh b/scripts/wacom.sh index b5096e9..79b8608 100755 --- a/scripts/wacom.sh +++ b/scripts/wacom.sh @@ -4,7 +4,7 @@ # Set this to your (stylus) device. Find it by running: # xsetwacom --list devices -DEVICE='Wacom Intuos PT S Pen stylus' +DEVICES=("Wacom Intuos PT S Pen stylus" "Wacom Intuos PT S Pen eraser") # These numbers are specific for each device. Get them by running: # xsetwacom --set "Your device name here" ResetArea @@ -68,8 +68,10 @@ else NEWAREAY="$AREAY" fi -xsetwacom --set "$DEVICE" Area 0 0 "$NEWAREAX" "$NEWAREAY" -xsetwacom --set "$DEVICE" MapToOutput "$POSITION" +for DEVICE in "${DEVICES[@]}"; do + xsetwacom --set "$DEVICE" Area 0 0 "$NEWAREAX" "$NEWAREAY" + xsetwacom --set "$DEVICE" MapToOutput "$POSITION" +done # $ xsetwacom --list devices -- cgit v1.2.3