1

I would like to do the following with my CAPS_LOCK key:

  1. Remap CAPS_LOCK+h to the left arrow key
  2. Remap CAPS_LOCK+j to the down arrow key, etc
  3. Allow CAPS_LOCK to STAY as a CAPS_LOCK key if it's just pressed on its own
  4. Allow this mapping to survive after my laptop wakes up from suspend/hibernate.

I've been looking around everywhere and I'm very confused. Some sites say you shouldn't use xmodmap since it's old. Some sites say you should twiddle with some file in /etc/pm/sleep.d, whereas others call for /usr/lib/pm-utils/sleep.d.

I'm using Ubuntu 18.04.
I would appreciate any help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.