Created
June 28, 2011 12:51
-
-
Save sputnikus/1051067 to your computer and use it in GitHub Desktop.
For the sake of Caps Lock day
This file contains 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/sh | |
# | |
# Caps Lock killer | |
# | |
case "$1" in | |
deactivate) | |
xmodmap -e "remove lock = Caps_Lock" | |
;; | |
activate) | |
xmodmap -e "add lock = Caps_Lock" | |
;; | |
*) | |
echo $"Usage: $0 {deactivate|activate}" | |
exit 1 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment