diff --git a/os/install.fish b/os/install.fish index 0515137..6c37107 100644 --- a/os/install.fish +++ b/os/install.fish @@ -8,6 +8,9 @@ source "$DOT/os/apt_utils.fish" print_subtitle "OS" +brew_install "wget" "wget" +brew_install "cURL" "curl" + if [ "$(uname)" = "Darwin" ] brew_install "mas-cli" "mas" @@ -36,9 +39,6 @@ if [ "$(uname)" = "Darwin" ] brew_install "The Unarchiver" "the-unarchiver" "--cask" else if [ "$(uname)" = "Linux" ] && cmd_exists snap - apt_install "wget" "wget" - apt_install "curl" "cURL" - # Networking. if ! cmd_exists windscribe execute "sudo wget https://github.com/Windscribe/Desktop-App/releases/download/v2.8.6/windscribe_2.8.6_amd64.deb -O /tmp/ws.deb \ diff --git a/os/macos.fish b/os/macos.fish index e69de29..a6ca77c 100755 --- a/os/macos.fish +++ b/os/macos.fish @@ -0,0 +1,5 @@ +#!/usr/bin/env fish + +"$DOT/os/macos/close_prefs.applescript" + +find "$DOT/os/macos/" -name "*.pref.fish" | while read file; fish -c "$file"; end diff --git a/os/macos/app_store.pref.fish b/os/macos/app_store.pref.fish new file mode 100644 index 0000000..2d2d1b8 --- /dev/null +++ b/os/macos/app_store.pref.fish @@ -0,0 +1,21 @@ +#!/usr/bin/env fish + +source "$DOT/script/utils.fish" + +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +print_subtitle "App Store" + +execute "defaults write com.apple.commerce AutoUpdate -bool true" \ + "Turn on auto-update" + +execute "defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true" \ + "Enable automatic update check" + +execute "defaults write come.apple.SoftwareUpdate AutomaticDownload -int 1" \ + "Download newly available updates in background" + +execute "defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 1" \ + "Install system data files and security updates" + +killall "App Store" &>/dev/null diff --git a/os/macos/close_prefs.applescript b/os/macos/close_prefs.applescript new file mode 100644 index 0000000..cc45e23 --- /dev/null +++ b/os/macos/close_prefs.applescript @@ -0,0 +1,3 @@ +#!/usr/bin/env osascript + +tell application "System Preferences" to quit diff --git a/os/macos/dock.pref.fish b/os/macos/dock.pref.fish new file mode 100644 index 0000000..c13d423 --- /dev/null +++ b/os/macos/dock.pref.fish @@ -0,0 +1,30 @@ +#!/usr/bin/env fish + +source "$DOT/script/utils.fish" + +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +print_subtitle "Dock" + +execute "defaults write com.apple.dock autohide -bool true" \ + "Automatically hide/show the dock" + +execute "defaults write com.apple.dock autohide-delay -float 0" \ + "Disable the hide dock delay" + +execute "defaults write com.apple.dock enable-spring-load-actions-on-all-items -bool true" \ + "Enable spring loading for all dock items" + +execute "defaults write com.apple.dock expose-animation-duration -float 0.1" \ + "Make all mission control animations faster" + +execute "defaults write com.apple.dock mineffect -string 'scale'" \ + "Change minimize/maximize window animation to 'scale'" + +execute "defaults write com.apple.dock mru-spaces -bool false" \ + "Do not automatically rearrange spaces based on most recent use" + +execute "defaults write com.apple.dock show-recents -bool false" \ + "Do not show recent applications in dock" + +killall "Dock" &>/dev/null