Created
February 10, 2020 03:50
-
-
Save patricksimpson/03aca978f3353688d48b4ac3bbead8f4 to your computer and use it in GitHub Desktop.
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
! undo any meta keys already set | |
clear Mod1 | |
! keycodes 63 and 71 are the left and right COMMAND buttons adjacent to the spacebar; set them to be control keys | |
keycode 63 = Control_L | |
keycode 71 = Control_R | |
! keycodes 66 and 69 are the option/alt keys; assign them as Meta keys | |
keycode 66 = Escape NoSymbol Escape | |
keycode 69 = Meta_R | |
! now tell X11 that the Meta keys act as the Mod1 (meta) modier key; that is, when they are pressed with KEY, it is the same as hitting M-KEY | |
add Mod1 = Meta_L Meta_R | |
! tell X11 that the Control keys are Control modifiers, so when pressed with u (for example) it is the same as hitting C-u | |
add Control = Control_L Control_R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment