Created
May 20, 2014 08:09
-
-
Save ties/903d1c497169486f0bf6 to your computer and use it in GitHub Desktop.
I moved all my defaults write commands from the readme into my boxen config. Pretty nice :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class projects::ossettings { | |
# directory setup | |
$home = "/Users/${::boxen_user}/" | |
## java home | |
file_line { 'java_home': | |
path => "${home}/.profile", | |
line => 'export JAVA_HOME=`/usr/libexec/java_home`', | |
} | |
## ssh-agent timeout of 10 minutes: | |
property_list_key { 'ssh_agent_timeout': | |
ensure => present, | |
path => '/System/Library/LaunchAgents/org.openbsd.ssh-agent.plist', | |
key => 'ProgramArguments', | |
value => ['/usr/bin/ssh-agent', '-l', '-t', 600], | |
value_type => 'array', | |
} | |
## one-shot defaults-write settings: | |
osx::recovery_message { | |
'If this Mac is found, please contact me at +31 6 [redacted] or [name]@[domain]': | |
} | |
# print/save dialog | |
include osx::global::expand_print_dialog | |
include osx::global::expand_save_dialog | |
include osx::global::disable_key_press_and_hold | |
include osx::dock::autohide | |
include osx::finder::enable_quicklook_text_selection | |
include osx::no_network_dsstores | |
include osx::keyboard::capslock_to_control | |
# keyboard | |
include osx::global::key_repeat_rate | |
include osx::global::key_repeat_delay | |
# the default value (35) is definitely low enough. | |
# mouse | |
class {'osx::mouse::button_mode': | |
mode => 2, | |
} | |
# UI: | |
class {'osx::mouse::swipe_between_pages': | |
enabled => true | |
} | |
# subpixel rendering | |
boxen::osx_defaults { 'Font smoothing on external display': | |
key => 'AppleFontSmoothing', | |
domain => 'NSGlobalDomain', | |
value => '2', | |
type => 'int', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment