#!/bin/sh name=$(xinput list --name-only | grep Touchpad) xinput set-prop "$name" "Device Enabled" \ $(xinput --list-props "$name" | grep -c 'Device Enabled.*0')