Skip to content

Commit

Permalink
adding skype and active corner recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkocher committed Nov 16, 2010
1 parent 3612318 commit 85deac0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chef/all_recipes.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recipes": [
"pivotal_workstation::active_corners",
"pivotal_workstation::bash_path_order",
"pivotal_workstation::bash_profile-better_history",
"pivotal_workstation::bash_profile-no_sudo_gem_install",
Expand Down Expand Up @@ -34,6 +35,7 @@
"pivotal_workstation::pivotal_rubymine_preferences",
"pivotal_workstation::rvm",
"pivotal_workstation::set_ntp_server",
"pivotal_workstation::skype",
"pivotal_workstation::vim",
"pivotal_workstation::disable_front_row",
"pivotal_workstation::enable_screen_sharing",
Expand Down
24 changes: 24 additions & 0 deletions cookbooks/pivotal_workstation/recipes/active_corners.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
active_corner_value_to_int = {
:all_windows => 2,
:dashboard => 7
}

corners = {
:tl => :all_windows,
:tr => :dashboard
}

corners.each do |corner, value|
execute "#{corner} right #{value}" do
command "defaults write com.apple.dock wvous-#{corner}-corner -int #{active_corner_value_to_int[value]}"
user WS_USER
end
execute "#{corner} modifier" do
command "defaults write com.apple.dock wvous-#{corner}-modifier -int 0"
user WS_USER
end
end

execute "relaunch dock" do
command "killall Dock"
end
21 changes: 21 additions & 0 deletions cookbooks/pivotal_workstation/recipes/skype.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
run_unless_marker_file_exists("skype_5_beta") do
execute "download skype to temp dir" do
command "curl -o /tmp/skype.dmg http://download.skype.com/macosx/Skype_5.0.0.6378.dmg"
user WS_USER
end

execute "mount dmg" do
command "hdid /tmp/skype.dmg"
user WS_USER
end

execute "copy skype to /Applications" do
command 'cp -rf /Volumes/Skype/Skype.app /Applications/'
user WS_USER
end

execute "unmount dmg" do
command "hdiutil detach /Volumes/Skype"
user WS_USER
end
end

0 comments on commit 85deac0

Please sign in to comment.