This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
####################################### | |
# Enables or disables laptop keyboard # | |
####################################### | |
# Keyboard name to work with | |
KB_NAME="AT Translated Set 2 keyboard" | |
# Grab keyboard ID | |
KB_ID=$(xinput list | grep "$KB_NAME" | awk '{ print $7 }' | sed -r 's/id=//g') |