禁用/启用触控板

#!/bin/bash
ts=`synclient -l|grep TouchpadOff`
ts=${ts#*= }
if(("$ts" == 0))
then
synclient TouchpadOff=1
else
synclient TouchpadOff=0
fi

摘自百度贴吧: http://tieba.baidu.com/p/2122677849

你可能感兴趣的:(禁用/启用触控板)