Skip to content

Instantly share code, notes, and snippets.

@jen20
Created April 14, 2014 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jen20/10654959 to your computer and use it in GitHub Desktop.
Save jen20/10654959 to your computer and use it in GitHub Desktop.
class people::jen20 {
boxen::osx_defaults {
"NormalFunctionKeys":
ensure => present,
domain => 'NSGlobalDomain',
key => "com.apple.keyboard.fnState",
type => 'boolean',
value => 'true';
"NoPressAndHold":
ensure => present,
domain => 'NSGlobalDomain',
key => "ApplePressAndHoldEnabled",
type => 'boolean',
value => 'false';
"FastKeyRepeat":
ensure => present,
domain => 'NSGlobalDomain',
key => "KeyRepeat",
type => 'integer',
value => '0';
}
# etc
}
@jen20
Copy link
Author

jen20 commented Apr 14, 2014

Further info:

$ defaults read NSGlobalDomain KeyRepeat
2014-04-14 15:50:02.104 defaults[22019:507]
The domain/default pair of (kCFPreferencesAnyApplication, KeyRepeat) does not exist
$ defaults read NSGlobalDomain ApplePressAndHoldEnabled
2014-04-14 15:51:11.621 defaults[22030:507]
The domain/default pair of (kCFPreferencesAnyApplication, ApplePressAndHoldEnabled) does not exist
$ defaults read NSGlobalDomain com.apple.keyboard.fnState
1

(Note that I manually set fnState to 1 as it was just too annoying without!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment