screenon 147 B

123456
  1. #!/bin/sh
  2. declare -i ID
  3. ID=`xinput list | grep -Eo 'SYNA7300:00 06CB:177C\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}' | tail -1`
  4. xinput enable $ID