Created
July 23, 2015 11:23
-
-
Save fgui/c68d4c3fcf119bbaed15 to your computer and use it in GitHub Desktop.
.Xmodmap config file
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
! output taken from: | |
! xmodmap -pke | egrep '(Control|Super|Alt|Menu)' | |
! Use to set keycodes correctly below. List reordered to match | |
! keys from left to right. | |
! run xmodmap .Xmodmap to test changes. | |
! keycode 66 = CapsLock | |
! keycode 37 = Control_L NoSymbol Control_L | |
! keycode 133 = Super_L NoSymbol Super_L | |
! keycode 64 = Alt_L Meta_L Alt_L Meta_L | |
! keycode 108 = Alt_R Meta_R Alt_R Meta_R | |
! keycode 134 = Super_R NoSymbol Super_R | |
! keycode 135 = Menu | |
! keycode 105 = Control_R NoSymbol Control_R | |
! First clear modifiers | |
clear lock | |
clear control | |
! clear mod1 | |
! clear mod4 | |
! clear mod5 | |
! original control left | |
keycode 37 = Control_L NoSymbol Control_L | |
keycode 102 = Control_L | |
! original control right | |
keycode 105 = Control_R NoSymbol Control_R | |
! typematrix dsktp on 106 mode | |
keycode 100 = Control_R | |
! capslock as control | |
keycode 66 = Control_R | |
! Typematrix on mode 106 we need to map the backslash and bar again | |
keycode 97 = backslash bar | |
! We need to set keycodes first, as some programs (emacs!) read | |
! the key names and seem to ignore what's below. | |
add control = Control_R Control_L |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment