in OSX, how did you swap opt and cmd? i went through hoops to do that and finally managed to do it without replacing opt/cmd os-wide using cmdkeyhappy.
Before OS-X would let you do that, I took my PowerBook's keyboard out, cut the trace and redrew the traces to connect the CapsLock key to the Control traces. :-)
Now it's done by simply going to System-Preferences=>Keyboard=>Modifier Keys
Re:A CEO's Guide to Emacs (2015)
by cuddlybacon on Wednesday November 22, 2017 @12:16PM
(#15758477)
System Preferences -> Keyboard -> Modifier Keys...
On FreeBSD the syscons driver lets you edit the keyboard maps in a text file. I don't know how to do it in newcons. I forget how to do it in Linux. If all you care about is X, you can also use xmodmap (IIRC).