Skip to content

Instantly share code, notes, and snippets.

@Denperidge
Last active December 6, 2022 13:16
Show Gist options
  • Save Denperidge/ae8094dc8dcfef589c068191ad71628e to your computer and use it in GitHub Desktop.
Save Denperidge/ae8094dc8dcfef589c068191ad71628e to your computer and use it in GitHub Desktop.
Typing <> on a qwerty keyboard converted to azerty is a challenge, so lets make it a bit simpler

Normally you have to type SHIFT+ALTGR+W/X for <>, which is not, good.

This command will remap the ²³ key to be <> for the current session

xmodmap -e "keycode 49 = less greater less greater backslash backslash backslash"

How I got the relevant keycodes & names (mostly added for future references)

xmodmap -pke | grep superior  # keycode  49 = twosuperior threesuperior twosuperior threesuperior notsign notsign notsign
xmodmap -pke | grep greater  # keycode  94 = less greater less greater backslash backslash backslash
xmodmap -pke | grep Touch  # keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle
showkey  # Interactive! Might need sudo if it gives the "Couldn't get the file descriptor referring to the console"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment