Browse Source

Fixed screen toggle script

Samuel W. Flint 8 years ago
parent
commit
bcc9572f4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      screentoggle

+ 1 - 1
screentoggle

@@ -1,7 +1,7 @@
 #!/bin/sh
 
 declare -i ID
-ID=`xinput list | grep -Eo 'Touch Controller\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
+ID=`xinput list | grep -Eo 'maXTouch Digitizer\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
 declare -i STATE
 STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
 if [ $STATE -eq 1 ]