Last active
December 24, 2016 19:14
-
-
Save zotherstupidguy/8f1ec1101fc2d7437b897ba3a7b83659 to your computer and use it in GitHub Desktop.
Using this to easily navigate the terminal and focus on work, works well with emacs as well
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
▲ ~/Work cat ~/.Xmodmap | |
! 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. | |
! 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 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 | |
! We need to set keycodes first, as some programs (emacs!) 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment