Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/zsh
- # Toggle Mouse pad off
- # xinput list --- List Devices
- # xinput set-prop 13 "Device Enabled" 0 --- Disable 0 , Enable 1
- #
- #SYNSTATE=$(xinput list-props 13 | grep Enabled | grep -Eo .)
- A=$(xinput | grep 'SynPS/2 Synaptics TouchPad' | cut -f2 | cut -c4,5)
- SYNSTATE=$(xinput list-props $A | grep '138' | cut -f3)
- if [ $SYNSTATE = 0 ]; then xinput set-prop $A "Device Enabled" 1
- else xinput set-prop $A "Device Enabled" 0; fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement