cltoggle
cltoggle requires setxkbmap, please install with your preferred package manager if not present
Or if you have an alternative installed, please create a link in your $PATH to it named setxkbmap
Typically it will be located at /usr/bin/setxkbmap
Usage:
cltoggle 1 Remap Caps Lock key to Left CTRL
cltoggle 0 Change back to normal Caps Lock function
resources:
List of all setxkbmap configuration options (including models/layout/etc)