Trust me you want to do this:

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

top 10 comments

sorted by: hot top controversial new old
[–] 19 points 7 months ago

What you really want to do is to use a custom mechanical keyboard with QMK firmware so you can spend $500 to remove the capslock key from your key layout.

It will also save you room in your .bashrc file (SSDs are not cheap, ya know).

  • source
  • [–] 13 points 7 months ago (2 children)

    Remap it to escape if you're a vim user.

  • source
  • hideshow 2 child comments
  • [–] 7 points 7 months ago
    [–] 5 points 7 months ago

    ctrl is more useful

  • source
  • [–] 5 points 7 months ago

    I remapped the capslock key to be third level shift ³ or fourth level ¼ if used with normal shift and in the unlikely scenario where I need capslock, I hit both shifts at the same time to toggle it.

    Now I can do all sorts of neat symbols! ∞÷⍉±0≠¡⍶⍹⍷§⌾M€⍥

  • source
  • [–] 3 points 7 months ago (1 child)

    Tap/hold esc/caps for the win!

  • source
  • hideshow 1 child comment
  • [–] 3 points 7 months ago

    Mine is remapped to Ctrl since I use that way more often.

  • source