diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-11-11 15:42:41 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-11-11 15:42:41 +0100 |
commit | 2fce30d65adae36fe0a69dc366870212afd1f5b1 (patch) | |
tree | 3fb6451a4ea3b7a170e7d43eb68d6cd58b9a1230 | |
parent | f3e9c93063fa9b38ccda1e45df863a34fa2f28b5 (diff) | |
download | dotfiles-2fce30d65adae36fe0a69dc366870212afd1f5b1.tar.gz |
wacom.sh multiple devices
-rwxr-xr-x | scripts/wacom.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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 |