Push old repo

This commit is contained in:
sm_moshi
2024-03-11 14:27:11 +01:00
parent 365ac992bc
commit 91de56d6b6
6 changed files with 330 additions and 0 deletions

33
dock.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
# sm @ DeZIM-Institut
# Clear existing persistent apps in the Dock
defaults write com.apple.dock persistent-apps -array
# Define an array of applications to add to the Dock
dock_apps=(
"/System/Library/CoreServices/Finder.app"
"/System/Applications/Launchpad.app"
"/Applications/Safari.app"
"Applications/Firefox.app"
"/Applications/Google Chrome.app"
"/Applications/Microsoft Outlook.app"
"/Applications/Slack.app"
"/Applications/Notes.app"
"/Applications/Microsoft Word.app"
"/Applications/Microsoft PowerPoint.app"
"/Applications/Microsoft Excel.app"
"/Applications/1Password.app"
"/Applications/Zoom.app"
"/Applications/TeamViewer.app"
"/Applications/Visual Studio Code.app"
"/Applications/iTerm.app"
"/System/Applications/System Settings.app"
)
echo "Setting the new macOS Dock layout..."
# Loop through the applications and add them to the Dock
for dockItem in "${dock_apps[@]}"; do
defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>$dockItem</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"
done