Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

capslock_to_control not working on Yosemite #94

Open
jabley opened this issue Dec 12, 2015 · 0 comments
Open

capslock_to_control not working on Yosemite #94

jabley opened this issue Dec 12, 2015 · 0 comments

Comments

@jabley
Copy link

jabley commented Dec 12, 2015

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.

jabley added a commit to jabley/our-boxen that referenced this issue Dec 14, 2015
See boxen/puppet-osx#94

This configures it correctly on Yosemite at least.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant