Browse Source

Added screen on and screen off

Samuel W. Flint 8 years ago
parent
commit
4470a97a2a
2 changed files with 12 additions and 0 deletions
  1. 6 0
      screenoff
  2. 6 0
      screenon

+ 6 - 0
screenoff

@@ -0,0 +1,6 @@
+#!/bin/sh
+
+declare -i ID
+ID=`xinput list | grep -Eo 'maXTouch Digitizer\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
+
+xinput disable $ID

+ 6 - 0
screenon

@@ -0,0 +1,6 @@
+#!/bin/sh
+
+declare -i ID
+ID=`xinput list | grep -Eo 'maXTouch Digitizer\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
+
+xinput enable $ID