suchtie

Script: Remap Capslock key to a Shift key

Aug 25th, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Removes standard function of the Capslock key
  3. # Capslock now behaves like a normal Shift key
  4. #
  5. # If you don't know what "bash" is then don't
  6. # use this script
  7. #
  8. # --- HOW TO USE ---
  9. #
  10. # Save the contents of this paste into a .sh file
  11. # then mark the file as executable (either with
  12. # chmod +x or with the file properties dialogue)
  13. #
  14. # Put the file into the list of programs which are
  15. # started when you boot or login
  16. # Changes will take effect on relogin
  17. #
  18. # --- CREDITS ---
  19. #
  20. # Original Author: Michael Koch
  21. # (m<DOT>koch<AT>emkay443<DOT>de)
  22. # remapped Capslock to a Ctrl key
  23. # from 2013-08-23
  24. #
  25. # Edited by: Marko Milse
  26. # (marko<DOT>milse<AT>yahoo<DOT>com)
  27. # Version: 2013-08-25
  28. #
  29. # License: Copyleft
  30.  
  31. xmodmap -e "remove Lock = Caps_Lock"
  32. xmodmap -e "keycode 0x42 = Shift_L"
  33. xmodmap -e "add Shift = Shift_L"
  34. exit 0
Advertisement
Add Comment
Please, Sign In to add comment