• Uncategorized

    How to switch “\” with “<" keys in linux

    When using the Apple Magic Keyboard with linux and certain keyboard layout, some key may be exchanged with some other key. In my case, I have an Italian Magic Keyboard and a Ubuntu 20.10 running on VmWare Fusion and the “\” and “<” keys are switched. The fix is pretty easy, but not easy to find on the net. This is the recipe: you need to force xmodmap to exchange the two keystrokes. It can be done in the terminal with the following two lines: xmodmap -e "keycode 49 = less greater guillemotleft \ guillemotright guillemotleft guillemotright" xmodmap -e "keycode 94 = backslash bar notsign brokenbar \ notsign brokenbar" This…