Xmodmap for the Apple keyboard
This is the ~/.Xmodmap file that I use for the new metal Apple under Linux/X Windows. Basically, it swaps the "option" and "command" keys because the "command" doesn't do much, the "option" does, but the "command" is more ergonomic to hit with the thumb.
clear mod1 keycode 115 = Alt_L keycode 64 = Meta_L keycode 116 = Alt_R keycode 113 = Meta_R add mod1 = Alt_L Alt_R add mod4 = Meta_L Meta_R