Added MacOS dock spacers and removed delay

This commit is contained in:
2024-01-22 13:38:21 +00:00
parent 7c22310d46
commit fc426f478f
3 changed files with 11 additions and 12 deletions

View File

@@ -10,22 +10,17 @@ if [ $dist != 3 ]; then
return 1 return 1
fi 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 # Copy configs
echo -e "${GREEN}[+] Configuring system...${ENDCOLOR}" echo -e "${GREEN}[+] Configuring system...${ENDCOLOR}"
cp -rf homeConfigs/.* ~ 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 # Install brew
echo -e "${GREEN}[+] Installing homebrew...${ENDCOLOR}" echo -e "${GREEN}[+] Installing homebrew...${ENDCOLOR}"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

View File

@@ -0,0 +1,2 @@
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'
killall Dock

View File

@@ -0,0 +1,2 @@
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock