소스 검색

Added screen on and screen off

Samuel W. Flint 8 년 전
부모
커밋
4470a97a2a
2개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  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