Permalink
Browse files

corrected and added comment header where applicable

  • Loading branch information...
1 parent e4613cc commit 1b724f7eb06684042b5326a265185de5a620758e @jtimberman jtimberman committed Dec 10, 2011
View
@@ -2,7 +2,9 @@
# Cookbook Name:: mac_os_x
# Recipe:: default
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -2,7 +2,9 @@
# Cookbook Name:: mac_os_x
# Recipe:: dock_preferences
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -2,7 +2,9 @@
# Cookbook Name:: mac_os_x
# Recipe:: finder
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,8 +1,10 @@
#
# Cookbook Name:: mac_os_x
-# Recipe:: dock_preferences
+# Recipe:: firewall
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,8 +1,10 @@
#
# Cookbook Name:: mac_os_x
-# Recipe:: dock_preferences
+# Recipe:: kbaccess_preferences
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,8 +1,10 @@
#
# Cookbook Name:: mac_os_x
-# Recipe:: dock_preferences
+# Recipe:: key_repeat
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -2,7 +2,9 @@
# Cookbook Name:: mac_os_x
# Recipe:: lion_ical
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -1,15 +1,35 @@
+#
+# Cookbook:: mac_os_x
+# Recipe:: lion_mail
+#
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
execute "Set Mail.app Archive to cmd-Y" do
command "defaults write com.apple.mail NSUserKeyEquivalents -dict-add Archive '@y'"
not_if "defaults read com.apple.mail NSUserKeyEquivalents 2>&1 | grep -q '.*Archive = \"@y\"'"
end
-
+
%w[Reply, Send].each do |animation|
-
+
mac_os_x_userdefaults "Disable Lions mail #{animation} animation" do
domain "com.apple.Mail"
key "Disable#{animation}Animations"
value 1
type "bool"
end
-
+
end
View
@@ -1,35 +1,55 @@
+#
+# Cookbook:: mac_os_x
+# Recipe:: lion_tweaks
+
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
unless node['platform_version'].to_f < 10.7
include_recipe "mac_os_x::lion_mail"
-
+
mac_os_x_userdefaults "Disable Lions window animations" do
domain "NSGlobalDomain"
key "NSAutomaticWindowAnimationsEnabled"
type "bool"
value "NO"
only_if "defaults read NSGlobalDomain NSAutomaticWindowAnimationsEnabled"
end
-
+
mac_os_x_userdefaults "Disable keyboard press and hold" do
domain "ApplePressAndHoldEnabled"
value "false"
global true
end
-
+
mac_os_x_userdefaults "Disable automatic spelling correction" do
domain "NSGlobalDomain"
key "NSAutomaticSpellingCorrectionEnabled"
value "NO"
type "bool"
end
-
+
mac_os_x_userdefaults "Always show scrollbars" do
domain "AppleShowScrollBars"
type "string"
value "Always"
global true
end
-
+
execute "chflags nohidden #{ENV['HOME']}/Library"
end
View
@@ -1,8 +1,10 @@
#
# Cookbook Name:: mac_os_x
-# Recipe:: dock_preferences
+# Recipe:: screensaver
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
View
@@ -2,7 +2,9 @@
# Cookbook Name:: mac_os_x
# Recipe:: time_machine
#
-# Copyright 2011, Joshua Timberman
+# Author:: Joshua Timberman <opensource@housepub.org>
+# Copyright:: Copyright (c) 2011, Joshua Timberman
+# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.

0 comments on commit 1b724f7

Please sign in to comment.