Update README.md

This commit is contained in:
2025-09-27 18:19:47 +02:00
parent 637bc6423f
commit e571a653e9

View File

@@ -1,21 +1,53 @@
# Bash Utility Scripts
# How to Use the Scripts
A collection of bash scripts for automation, system management, and command-line utilities.
## 📥 Download and Installation
## 📦 Available Scripts
### Font Tools
- **convert-ttf-to-woff2.sh** - Batch TTF → WOFF2 conversion
### Image Tools
- **optimize-png.sh** - PNG optimization with pngquant
### Cleanup Tools
- **remove-mac-files.sh** - Remove hidden macOS files
## 🚀 Quick Installation
Download the scripts individually from the project page, or clone the entire repository with:
```bash
git clone https://gitea.it/krypt77/Bash-Utility-Scripts
cd Bash-Utility-Scripts
./install.sh
git clone https://gitea.it/krypt77/Bash-Utility-Scripts.git
```
## 🚀 Usage
### Nemo File Manager Integration
To use the scripts directly from Nemo with a graphical interface:
```bash
# Create Nemo scripts directory
mkdir -p ~/.local/share/nemo/scripts
# Copy the downloaded scripts
cp font-tools/convert-ttf-in-woff2.sh ~/.local/share/nemo/scripts/
cp image-tools/optimize-jpg.sh ~/.local/share/nemo/scripts/
cp image-tools/optimize-png.sh ~/.local/share/nemo/scripts/
cp cleanup-tools/remove-mac-files.sh ~/.local/share/nemo/scripts/
# Make them executable
chmod +x ~/.local/share/nemo/scripts/*.sh
```
**💡 Tip:** After installation, the scripts will appear in Nemo's context menu when you select files!
### Terminal Usage
To use the scripts from the command line:
```bash
# Make scripts executable
chmod +x *.sh
# Use scripts with parameters
./convert-ttf-in-woff2.sh font1.ttf font2.ttf
./optimize-jpg.sh image1.jpg image2.jpg
./optimize-png.sh image1.png image2.png
./remove-mac-files.sh /path/to/directory
# Or with wildcards
./optimize-jpg.sh *.jpg
./optimize-png.sh *.png
./convert-ttf-in-woff2.sh *.ttf
```
**⚠️ Note:** Zenity dialogs may not appear if you are running the scripts from a terminal where an X11 display is not available.