Skip to content

Instantly share code, notes, and snippets.

@hSATAC
Created November 21, 2011 05:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hSATAC/1381699 to your computer and use it in GitHub Desktop.
Save hSATAC/1381699 to your computer and use it in GitHub Desktop.
Disable Logitech G300 keyboard to make it working correctly.
#!/bin/sh
DEVICE_ID=`xinput list | grep "Logitech Gaming Mouse G300" | grep keyboard | sed 's/.*id=\([0-9]*\).*/\1/'`
if xinput -list-props $DEVICE_ID | grep "Device Enabled" | grep "1$" > /dev/null
then
xinput set-int-prop $DEVICE_ID "Device Enabled" 8 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment