#!/bin/sh for ID in $(xinput list | \ grep Wacom | \ grep -Eo '\s*id\=[0-9]{1,2}' | \ grep -Eo '[0-9]{1,2}') ; do xinput enable $ID done