Explorar o código

Added screen on and screen off

Samuel W. Flint %!s(int64=8) %!d(string=hai) anos
pai
achega
4470a97a2a
Modificáronse 2 ficheiros con 12 adicións e 0 borrados
  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