Created
March 16, 2013 13:00
-
-
Save denzuko/5176277 to your computer and use it in GitHub Desktop.
Here's a great Unix keyboard mappings on Xorg for that classic SysV feel in Linux.
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
| ! ~/.Xmodmap | |
| ! xmodmap -pke | egrep '(Control|Super|Alt|Menu)' | |
| ! Use to set keycodes correctly below. List reordered to match | |
| ! keys from left to right. | |
| ! First clear all modifiers, caps lock & control | |
| clear lock | |
| clear control | |
| clear mod1 | |
| clear mod4 | |
| keycode 66 = Alt_L Meta_L | |
| keycode 37 = Super_L | |
| keycode 133 = Alt_L Meta_L | |
| keycode 64 = Control_L | |
| keycode 108 = Control_R | |
| keycode 134 = Alt_R Meta_R | |
| keycode 135 = Alt_R Meta_R | |
| keycode 105 = Super_R | |
| ! Let us set some keycodes first, as some programs (vim,tmux,..!) read | |
| ! the key names and seem to ignore what's below. | |
| add mod1 = Alt_R Alt_L Meta_R Meta_L | |
| add mod4 = Super_R Super_L Menu | |
| add control = Control_R Control_L | |
| ! To load this when done writing | |
| ! ~$ xmodmap ~/.Xmodmap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment