forked from vmware-archive/pivotal_workstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding skype and active corner recipes
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
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 |
This file contains 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
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 |