# Cleanup Tools Collection of bash scripts for cleaning and maintaining directories. ## Scripts ### remove-mac-files.sh Script to remove macOS hidden files recursively **Usage:** ```bash ./remove-mac-files.sh /path/to/directory ./remove-mac-files.sh . ``` Or select folders in Nemo file manager and run as script **Parameters:** - `directory` - Directory to clean (can specify multiple) **Examples:** ```bash ./remove-mac-files.sh /home/user/Downloads # Clean Downloads folder ./remove-mac-files.sh . # Clean current directory ./remove-mac-files.sh /media/usb /home/shared # Clean multiple directories ``` **Features:** - Removes .DS_Store and ._* files recursively - When used as Nemo script, progress is shown graphically - No external dependencies required - Dual-mode operation (GUI/Terminal) - Progress tracking and final statistics **Dependencies:** - `zenity` for GUI dialogs (usually pre-installed) - Standard bash commands (find, rm) ## Installation 1. Make scripts executable: ```bash chmod +x *.sh ``` 2. For use as Nemo scripts, copy to: ```bash ~/.local/share/nemo/scripts/ ``` ## Notes All scripts support dual-mode operation: - **Terminal mode**: When run from command line - **GUI mode**: When run as Nemo file manager scripts with zenity dialogs