Note: This module is deprecated - use boxen/puppet-seil instead.
Installs PCKeyboardHack on your Mac.
include pckeyboardhack
# add pckeyboardhack to login items:
include pckeyboardhack::login_item
# change the left control to F19:
pckeyboardhack::bind { 'keyboard bindings':
mappings => { 'control_l' => 80 }
}
The codes for the keys that can be used in the mappings are listed below.
To identify keys not listed below, run defaults read org.pqrs.PCKeyboardHack.plist
and look for the corresponding key, ie. enable_control_l
or enable_capslock
. Note that the code you need excludes the enable_
or keycode_
portion, ie. just control_l
or capslock
.
- Caps Lock:
capslock
- Command_L:
command_l
- Command_R:
command_r
- Control_L:
control_l
- Control_R:
control_r
- Option_L:
option_l
- Option_R:
option_r
- Shift_L:
shift_l
- Shift_R:
shift_r
- Escape:
escape
- Delete:
delete
- Return:
return
- Keypad Enter:
enter
- International 1 Key:
int1
- International 2 Key:
int2
- International 3 Key:
int3
- International 4 Key:
int4
- International 5 Key:
int5
- International 6 Key:
int6
- International 7 Key:
int7
- International 8 Key:
int8
- International 9 Key:
int9
- LANG1 Key:
lang1
- LANG2 Key:
lang2
- LANG3 Key:
lang3
- LANG4 Key:
lang4
- LANG5 Key:
lang5
- LANG6 Key:
lang6
- LANG7 Key:
lang7
- LANG8 Key:
lang8
- LANG9 Key:
lang9
- ADB Power Key:
adb_keyboard_power
- Again Key:
again
- Copy Key:
copy
- Cut Key:
cut
- Execute Key:
execute
- Find Key:
find
- Menu Key:
menu
- Paste Key:
paste
- Select Key:
select
- Stop Key:
stop
- Undo Key:
undo
- NFER Key on PC keyboard:
jis_nfer
- XFER Key on PC keyboard:
jis_xfer
- KATAKANA Key on PC keyboard:
jis_kana
boxen
osx
glarizza/puppet-property_list_key
Add the following dependency on CFPropertyList provider in your Gemfile in our-boxen:
- gem "CFPropertyList", "~> 2.2.5"
See https://github.com/glarizza/puppet-property_list_key#a-note-for-mavericks-support for more information
Write code. Run script/cibuild
to test it. Check the script
directory for other useful tools.