Skip to content

Instantly share code, notes, and snippets.

@hSATAC
hSATAC / G300
Created November 21, 2011 05:09
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