Created
November 18, 2014 08:53
-
-
Save hendrikb/bf3673f5ceb43cb6bed1 to your computer and use it in GitHub Desktop.
Xmodmap mapping: Make Macintosh Apple US Keyboards behave like a PC keyboard on Ubuntu
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
! Xmodmap mapping for Macintosh Apple US Keyboards | |
! Very useful if You want to use an Apple keyboard on your Ubuntu PC. | |
! It turns (Mac's) CMD to (PC's) ALT and (Mac's) ALT to (PC's/Ubuntu's) SUPER key | |
! -- so it kind of behaves like a regular PC keyboard -- | |
! and enable German Umlauts when pressing right CMD + u/a/o/s | |
! Put these lines into your ~/.Xmodmap and call xmodmap ~/.Xmodmap to change your keyboard layout | |
! clean most of the modifiers | |
clear control | |
clear mod4 | |
clear mod1 | |
! ----------------- | |
! left side | |
! ---------------- | |
! keycode 64 is the left alt key | |
keycode 64 = Super_L | |
! key code 133 is the left command key | |
keycode 133 = Alt_L | |
! ------------------ | |
! right side | |
! ------------------- | |
! key code 134 is the right command key | |
keycode 134 = Alt_R Meta_R | |
! keycode 108 is the right alt key | |
keycode 108 = Control_R | |
add mod4 = Super_L | |
add mod1 = Alt_L Meta_L | |
add mod1 = Alt_R Meta_R | |
add control = Control_L | |
add control = Control_R | |
keycode 134 = Mode_switch NoSymbol Mode_switch | |
keycode 191 = Insert | |
keycode 192 = Print Sys_Req | |
keycode 30 = u U udiaeresis Udiaeresis | |
keycode 38 = a A adiaeresis Adiaeresis | |
keycode 32 = o O odiaeresis Odiaeresis | |
keycode 39 = s S ssharp ssharp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment