Useful when remapped to another key.
Compile the code:
gcc apple-kb-caps.c -o apple-kb-caps
Move the executable apple-kb-caps
and script run-apple-kb-caps
to ~/bin/
.
Run the script (require sudo password):
run-apple-kb-caps
Credit: jmrk