blob: f0a86a18c1a7e0f3cfdcb2b7ae3d7e508a98e48f (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
touchpad_name='ETPS/2 Elantech Touchpad'
active="$(xinput list-props "$touchpad_name" | grep 'Device Enabled' | cut -f 3)"
[ "$active" -eq 1 ] &&
xinput disable "$touchpad_name" ||
xinput enable "$touchpad_name"
|