Add gitignore and dock management script

This commit is contained in:
Sebastian Cabrera 2025-03-13 18:07:32 -04:00
parent 406c088547
commit baf378c393
2 changed files with 137 additions and 0 deletions

38
scripts/dock.sh Executable file
View file

@ -0,0 +1,38 @@
#!/bin/sh
# Function to check dock size
check_dock() {
echo "Current Dock tile size:"
defaults read com.apple.dock tilesize
}
# Function to reset dock
reset_dock() {
echo "Resetting Dock to default settings..."
defaults delete com.apple.dock tilesize
killall Dock
echo "Dock has been reset and restarted."
}
# Show usage if no arguments provided
if [ $# -eq 0 ]; then
echo "Usage: $0 [check|reset]"
echo " check - Show current Dock tile size"
echo " reset - Reset Dock to default settings"
exit 1
fi
# Process command line arguments
case "$1" in
"check")
check_dock
;;
"reset")
reset_dock
;;
*)
echo "Invalid option: $1"
echo "Usage: $0 [check|reset]"
exit 1
;;
esac