Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nilsnh
Created September 12, 2015 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsnh/e3243e3296fbe497e7fc to your computer and use it in GitHub Desktop.
Save nilsnh/e3243e3296fbe497e7fc to your computer and use it in GitHub Desktop.
How to activate / deactivate the internal laptop keyboard when connecting an
#!/bin/bash
# How to disable the internal keyboard
http://askubuntu.com/questions/160945/is-there-a-way-to-disable-a-laptops-internal-keyboard
# How to fire script on usb connect
http://unix.stackexchange.com/questions/65891/how-to-execute-a-shellscript-when-i-plug-in-a-usb-device
# Todo
1. Is now able to grab the right numbers from xinput.
2. Bash script need to react on connect or disconnect script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment