Using letters as arrow keys on Linux and Mac
This summer I found myself sitting at a computer writing code for 40 hours a week for the first time, and I started looking for ways to make my computer work more comfortable and efficient. One day it dawned on me that my right hand was constantly jumping between the home row and the arrow keys, so I set out to find a better way to move around my text. After a bit of research, I figured out how to remap a modifier key (e.g.,
Alt, etc.) plus
l to the arrow keys, and what an improvement it was!
I run Linux with the Plasma desktop environment at home and use a Mac at work, so I’ve included instructions for both.
Linux with Plasma
The Plasma desktop environment is insanely configurable (that’s why I love it!), so I figured I could remap some keys without much trouble. Sure enough, it’s possible to do right from the System Settings GUI.
- Go to System Settings > Input Devices > Keyboard > Advanced
- Go to System Settings > Shortcuts > Custom Shortcuts
- Choose Edit > New > Global Shortcut > Send Keyboard Input
- Give the new shortcut a name
- In the Trigger tab, click the button to set the shortcut and then press your desired key combination. (I used
- In the Action tab enter
Upas the action (top box)
- Click Apply
- Repeat steps 3-7 for the remaining shortcuts, substituting
Upin step 6.
Unfortunately MacOS isn’t all that configurable without some help from third-party applications. To remap keys, I used Karabiner Elements.
- Open Karabiner Elements
- Under the Complex Modifications tab, click Add rule and import a rule from the Internet
- On the website, find the rule called “Change Modifier key + i/j/k/l to arrow keys” and import it
- Enable the rule called “Change Alt + i/j/k/l to Arrows” (or whichever modifier you prefer).
MacOS automatically sets
ctrl + arrows to Home, End, Page Up, and Page Down, so
ctrl + modifier +
l should work for those now.
[This page was last updated on September 16, 2019.]