The stuff I do

Remap <alt>+hjkl to arrow keys on Linux

← Notes

Tags: [linux][keyboard][autokey]

One way to have alth, altj, altk, altl mapped to , , , is to use autokey.

⚠ Note that autokey is an X11 app that will not work with Wayland ⚠

On Ubuntu 21.04 one can install autokey from the repos with sudo apt install autokey-gtk.

In autokey one can create four different scripts with the following content:

# script arrow_left

# script arrow_right

# script arrow_up

# script arrow_down

Then on each script set a hotkey (The "Press to set" feature is useful to set combinations like alth):

Setting a hotkey

← Notes

Back to top