This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Description
I've included osx::keyboard::capslock_to_control in my setup. I'm having problems getting it to work.
boxen::personal::includes:
- osx::keyboard::capslock_to_control
This alters the settings like so:
> ioreg -n IOHIDKeyboard -r | grep -E 'VendorID"|ProductID' | \
awk ' { print $4 }' | paste -s -d'-\n' - | \
xargs -I{} sh -c 'defaults -currentHost read -g "com.apple.keyboard.modifiermapping.{}-0"'
(
{
HIDKeyboardModifierMappingDst = 2;
HIDKeyboardModifierMappingSrc = 0;
}
)
If I use the Keyboard preferences pane to remap left control to capslock, and capslock to control, I get the following changes in the defaults.
> ioreg -n IOHIDKeyboard -r | grep -E 'VendorID"|ProductID' | \
awk ' { print $4 }' | paste -s -d'-\n' - | \
xargs -I{} sh -c 'defaults -currentHost read -g "com.apple.keyboard.modifiermapping.{}-0"'
(
{
HIDKeyboardModifierMappingDst = 2;
HIDKeyboardModifierMappingSrc = 0;
},
{
HIDKeyboardModifierMappingDst = 0;
HIDKeyboardModifierMappingSrc = 2;
},
{
HIDKeyboardModifierMappingDst = 0;
HIDKeyboardModifierMappingSrc = 10;
}
)
If other people can confirm this looks good, I can try to alter the existing puppet class to reflect this.