diff --git a/macos.sh b/macos.sh index 68608a35..6148ea24 100755 --- a/macos.sh +++ b/macos.sh @@ -10,22 +10,17 @@ if [ $dist != 3 ]; then return 1 fi -# Ask Y/n -function ask() { - read -p "$1 (Y/n): " resp - if [ -z "$resp" ]; then - response_lc="y" # empty is Yes - else - response_lc=$(echo "$resp" | tr '[:upper:]' '[:lower:]') # case insensitive - fi - - [ "$response_lc" = "y" ] -} - # Copy configs echo -e "${GREEN}[+] Configuring system...${ENDCOLOR}" cp -rf homeConfigs/.* ~ +# Disable dock delay +echo -e "${GREEN}[+] Disabling dock autohide delay...${ENDCOLOR}" +defaults write com.apple.dock autohide-delay -float 0 +defaults write com.apple.dock autohide -int 1 +#defaults write com.apple.dock autohide-time-modifier -int 0 #Disable animation +killall Dock + # Install brew echo -e "${GREEN}[+] Installing homebrew...${ENDCOLOR}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" diff --git a/scripts/macos-add-small-spacer.sh b/scripts/macos-add-small-spacer.sh new file mode 100644 index 00000000..e85a9aec --- /dev/null +++ b/scripts/macos-add-small-spacer.sh @@ -0,0 +1,2 @@ +defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' +killall Dock diff --git a/scripts/macos-add-spacer.sh b/scripts/macos-add-spacer.sh new file mode 100644 index 00000000..dd7f2f63 --- /dev/null +++ b/scripts/macos-add-spacer.sh @@ -0,0 +1,2 @@ +defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' +killall Dock