Trust me you want to do this:

#!/bin/bash
# Remap Caps Lock to F11
xmodmap -e "keycode 66 = F11"
xmodmap -e "clear Lock"

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 7 months ago

Tap/hold esc/control is arguably more useful.

  • source
  • parent