Skip to content

Instantly share code, notes, and snippets.

@timrosskamp
Last active June 17, 2018 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timrosskamp/98f059eb1e52a8f40e0aa3d004b7d26d to your computer and use it in GitHub Desktop.
Save timrosskamp/98f059eb1e52a8f40e0aa3d004b7d26d to your computer and use it in GitHub Desktop.
Fix wrong keys on mac keyboard when using linux

How to fix < and > keys on linux when using a mac keyboard

Create a .Xmodmap file in user directory: nano ~/.Xmodmap

keycode 49 = less greater less greater bar brokenbar bar
keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032

Apply changes with this command: xmodmap ~/.Xmodmap

After a reboot those changes are revoked. To apply those changes on every startup, add this command to the ~/.xinitrc file: echo "xmodmap ~/.Xmodmap" >> ~/.xinitrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment