Skip to content

Instantly share code, notes, and snippets.

View mr-m0nst3r's full-sized avatar

m0nst3r mr-m0nst3r

View GitHub Profile
@mr-m0nst3r
mr-m0nst3r / touchpad.sh
Created November 27, 2019 01:36
turn on/off touchpad on linux
#!/bin/bash
if [ "$1" == "on" ]; then
/usr/bin/xinput enable "`xinput list | grep -i touchpad | awk '{print $3" "$4" "$5}'`"
elif [ "$1" == "off" ]; then
/usr/bin/xinput disable "`xinput list | grep -i touchpad | awk '{print $3" "$4" "$5}'`"
else
echo " Usage: touchpad on/off"
fi

Keybase proof

I hereby claim:

  • I am mr-m0nst3r on github.
  • I am m0nst3r (https://keybase.io/m0nst3r) on keybase.
  • I have a public key ASAE8nF4_0HVUQp0a7809I2zu0VAtPBdfv4bJGDS5f4hfQo

To claim this, I am signing this object: