For a simple keyboard remapping I use built-in 'hidutil' command. https://developer.apple.com/library/archive/technotes/tn2450...
There is also https://hidutil-generator.netlify.app/
For a simple keyboard remapping I use built-in 'hidutil' command. https://developer.apple.com/library/archive/technotes/tn2450...
There is also https://hidutil-generator.netlify.app/
Karabiner can do more than simple 1:1 key remapping. For example, my capslock key is now a hyperkey when pressed and ⌘T when tapped. If that is possible w/ hidutil, please let me know and I stand corrected.
Let's get off the "I don't have a use for it, so it's useless/bad" train, please.
Edit: can perhaps use https://github.com/gkpln3/CapsLockNoDelay
To your knowledge, is there any cli way to assign key combinations to menu items as seen in system preferences -> keyboard shortcuts?
$ defaults read org.mozilla.firefox NSUserKeyEquivalents
The encoding for the modifier keys is given here: https://developer.apple.com/library/archive/documentation/Co...https://github.com/FSecureLABS/OSXFuzz/blob/600f28c1c4a1211c....
"HIDKind",
"HIDInterfaceID",
"HIDSubinterfaceID",
"HIDOriginalSubinterfaceID",
"HIDParameters",
"HIDVirtualDevice",
"HIDKeyRepeat",
"HIDInitialKeyMapping",
"HIDKeyMapping",
"HIDResetKeyboard",
"HIDKeyboardModifierMappingPairs",
"HIDKeyboardModifierMappingSrc",
"HIDKeyboardModifierMappingDst",
"HIDKeyboardCapsLockDoesLock",
"HIDKeyboardSupportsF12Eject",
"HIDKeyboardSupportedModifers",
"HIDPointerResolution",
"HIDPointerResetPointer",
"HIDPointerConvertAbsolute",
"HIDPointerContactToMove",
"HIDPointerPressureToClick",
"HIDPointerButtonMode",
"HIDPointerButtonCount",
"HIDPointerAcceleration",
"HIDPointerAccelerationSettings",
"HIDPointerAccelerationTable",
"HIDScrollReset",
"HIDScrollResolution",
"HIDScrollReportRate",
"HIDScrollAcceleration",
"HIDScrollAccelerationType",
"HIDScrollAccelerationTable",
"HIDScrollResolutionX",
"HIDScrollResolutionY",
"HIDScrollResolutionZ",
"HIDScrollAccelerationTableX",
"HIDScrollAccelerationTableY",
"HIDScrollAccelerationTableZ",
"HIDScrollMouseButton",
"HIDScrollZoomModiferMask",
"HIDTrackpadAcceleration",
"HIDMouseAcceleration",
"HIDClickTime",
"HIDClickSpace",
"HIDWaitCursorFrameInterval",
"HIDAutoDimThreshold",
"HIDAutoDimState",
"HIDAutoDimTime",
"HIDIdleTime",
"HIDBrightness",
"HIDAutoDimBrightness",
"HIDFkeyMode",
"HIDStickyKeysDisabled",
"HIDStickyKeysOn",
"HIDStickyKeysShiftToggles",
"HIDMouseKeysOptionToggles",
"HIDSlowKeysDelay",
"HIDF12EjectDelay",
"HIDMouseKeysOn",
"HIDUseKeyswitch",
"HIDDisallowRemappingOfPrimaryClick",
"HIDMouseKeysEnablesVirtualNumPad",
"HIDResetLEDs",
"HIDAccelCurves",
"HIDTrackingAccelCurves",
"HIDScrollAccelCurves",
"HIDAccellCurvesDebug",
"HIDScrollAccelCurvesDebug",
"HIDAccelGainLinear",
"HIDAccelGainParabolic",
"HIDAccelGainCubic",
"HIDAccelGainQuartic",
"HIDAccelTangentSpeedLinear",
"HIDAccelTangentSpeedParabolicRoot",
"HIDAccelTangestSpeedCubicRoot",
"HIDAccelTangentSpeedQuarticRoot",
"HIDAccelIndex",
"HIDScrollCountMaxTimeDeltaBetween",
"HIDScrollCountMaxTimeDeltaToSustain",
"HIDScrollCountMinDeltaToSustain",
"HIDScrollCountIgnoreMomentumScrolls",
"HIDScrollCountMouseCanReset",
"HIDScrollCountMax",
"HIDScrollCountAccelerationFactor",
"HIDScrollCountZero",
"HIDScrollCountBootDefault",
"HIDScrollCountReset",