Mac Keyboard with Hidutil
amitp.blogspot.com
amitp.blogspot.com
https://karabiner-elements.pqrs.org/docs/manual/operation/un...
That word doesn't mean what you think it means. What those instructions explain is (1) removing macOS permissions, (2) removing logs/temporary files, (3) removing config. These are normal things that some may want to keep after uninstalling the program. Calling it bloatware is misleading and dilutes the meaning for things that are actually bloatware.
Karabiner and hidutil are at a lower level; they modify the key codes that are the input to layout.
I spent a long time creating a giant karabiner config file for myself, but recently an MDM update at my work broke the virtual keyboard driver that Karabiner requires. I haven't figured out a way to install it. I may have to go begging to IT.
Instead, I map a key to one thing when pressed alone and another when pressed with other keys. Works so much better. I can't live without this now. I really wish QMK had this functionality, but I think it's only available in Karabiner.
MT(MOD_LCTL, KC_ESC)
RSFT_T(KC_SLSH)
With the customisable keyboard firmware, your tweaks would remain on the keyboard, & wouldn't need any setup on the OS.
Since my configuration files follow me from computer to computer anyway, it’s easier to just manage all the mods in one place and rely on the daemon. If I was doing support though, I would definitely go the firmware route.
Was unaware of the --matching option at the time, could be an interesting extension but I personally have no need for it
hidutil property --set '{ "UserKeyMapping": [{ "HIDKeyboardModifierMappingSrc": 0x70000002B, "HIDKeyboardModifierMappingDst": 0x7000000E1 }, { "HIDKeyboardModifierMappingSrc": 0x700000039, "HIDKeyboardModifierMappingDst": 0x70000002B }, { "HIDKeyboardModifierMappingSrc": 0x7000000E1, "HIDKeyboardModifierMappingDst": 0x7000000E2 }] }'
It remaps tab->L.shift, capslock->tab, L.shift->L.alt Why? Using TheCoreLite, so I can hit tab/caps/shift labelled keys with pinky and cmd with thumb and reach a good number of hotkeys including function keys.
On Windows, the PowerToys keyboard manager can do the same with a nice config UI.
Likewise, AHK can turn the Alt keys in Home/End when pressed alone, and the Shift keys in PageUp/PageDown.
One handed Alt-PageUp on the left hand side of the keyboard becomes pressing and holding the left Alt then pressing and releasing the left Shift.
https://medium.com/ryan-hanson/key-remapping-built-into-maco...
Wow, this is exactly how it should be! Who cares about F1 and F2, let them be brightness controls! A button for "full screen" on F5? No thank you, that should always be "refresh".
Btw, I switch a lot between MacOS and Linux, and my Logitech MX master can be Mac or Windows/Linux. It's maddening that the thing has a "super" and and "cmd" key. They should have been the same key. Alt and Opt should also have been the same.
⸻
1. From which we can deduce that the person who set the default for the caps lock key being enabled is a psychopath.