Created
April 1, 2016 21:47
-
-
Save yuyalush/0af17ef0db33c4038e47bb35a2453b51 to your computer and use it in GitHub Desktop.
タッチパッドに振れると動くので、一時的にとめるシェルスクリプト。xinputでidを探しておき、書き換えること。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
id=12 | |
size=$(xinput list $id | grep disabled | wc -l) | |
if [ $size -eq 0 ]; then | |
xinput disable $id | |
else | |
xinput enable $id | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment