Skip to content

Instantly share code, notes, and snippets.

@sputnikus
Created June 28, 2011 12:51
Show Gist options
  • Save sputnikus/1051067 to your computer and use it in GitHub Desktop.
Save sputnikus/1051067 to your computer and use it in GitHub Desktop.
For the sake of Caps Lock day
#!/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