#!/bin/bash OUTPUT=${1:-LVDS1} cd $(dirname $0) IDS=$(./wacomdevices.sh) for i in $IDS; do xsetwacom set $i MapToOutput $OUTPUT; done