Articles

Affichage des articles du juillet, 2017

Remapping an arbitrary combo to ALT TAB in (L)Ubuntu

My laptop has a missing Tab key. This has led me to some [interesting workarounds] , but I could never quite get the keyboard's behavior back to what it once was with these hackish solutions. I installed Lubuntu in dual boot with Windows 7 a few weeks ago. Lubuntu comes with Openbox, a customizable and lightweight window manager. I didn't feel like rewriting Keymapper for Linux since it relies on low-level hooks so I turned to Google in search for an alternative. I quickly discovered that it's possible to use some of the already-installed tools to accomplish what I needed. One such tool is Xmodmap. It lets you configure a mapping for a given pair of keys. In order to figure out the key codes I needed, I used xev, yet another utility whose purpose is to open a small window and print events on the terminal as they happen. Let's say you want to remap 1 (& on an azerty keyboard) to tab. Running xev and pressing 1 while the xev window is on focus produces the follo