Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
toggle でマウスを殺す fuck the mouse
#!/bin/bash
if ls /tmp/mouse_off ; then
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 0
rm /tmp/mouse_off
else
xinput --set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 1
touch /tmp/mouse_off
fi
# "SynPS/2 Synaptics TouchPad" の名前は
# $ xinput -list
# から
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment