AFAIK `.xinitrc` is sourced only if you start your DE/WM with `startx`.
basically it depends on what display manager and/or DE/WM you are using,
but a general solution that applies to most cases is put "setxkbmap
-option caps:escape" in `~/.xprofile` since most display manager
executes it, or messing with your WM/DE settings
Post by Junayeed Ahnaf via arch-general
Currently I use "setxkbmap -option caps:escape" and it works well, but
I'd like to know how to make it persistent through reboot. I set this
line in .xinitrc but it didn't work.
No computers were harmed in the making of this email, only free (as in freedom) software was used