我的戴尔笔记本不支持快捷键开关触控板,那么……
写脚本
Index=15
if [ `xinput list-props ${Index}|grep "Device Enabled" |cut -f3` -eq 0 ];then xinput --enable ${Index};else xinput --disable ${Index};fi
将上述命令写到一个Shell脚本文件中,比如TouchPad.sh。
【注意脚本中15是我的TouchPad的ID】
记得添加执行权限
chmod +x TouchPad.sh