Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- SAVED_IFS=$IFS
- IFS=$(echo -en "\n\b")
- TOUCHPAD='ETPS/2 Elantech Touchpad'
- for line in $(xinput list)
- do
- if [[ "${line}" =~ "$TOUCHPAD" ]]
- then
- device_id=$(echo "${line#*id=}" | cut -f 1)
- xinput set-prop $device_id "Device Enabled" 0
- fi
- done
- IFS=$SAVED_IFS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement