Added MacOS dock spacers and removed delay
This commit is contained in:
19
macos.sh
19
macos.sh
@@ -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)"
|
||||||
|
|||||||
2
scripts/macos-add-small-spacer.sh
Normal file
2
scripts/macos-add-small-spacer.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'
|
||||||
|
killall Dock
|
||||||
2
scripts/macos-add-spacer.sh
Normal file
2
scripts/macos-add-spacer.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
|
||||||
|
killall Dock
|
||||||
Reference in New Issue
Block a user