2018년 7월 25일 수요일

toggle enable/disable touchpad script

http://askubuntu.com/questions/537002/how-to-quickly-enable-disable-touchpad-in-xubuntu-14-04-without-installing-other

#!/bin/bash

# toggle state of synaptics touchpad

tpid=`xinput list | grep ETPS | sed 's/.*id\=\([0-9]\+\).*/\1/g'`

declare -i status
status=`xinput list-props ${tpid} | grep Device\ Enabled | sed -e 's/.*\:[ \t]\+//g'`

if [ 0 -eq ${status} ] ; then
xinput enable ${tpid}
else
xinput disable ${tpid}
fi

댓글 없음:

댓글 쓰기

via permission error linux chrome

 https://bbs.archlinux.org/viewtopic.php?id=285709