Trust me you want to do this:

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

  • FauxLiving@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 day 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).