Update README.md
This commit is contained in:
66
README.md
66
README.md
@@ -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
|
Download the scripts individually from the project page, or clone the entire repository with:
|
||||||
|
|
||||||
### 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
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://gitea.it/krypt77/Bash-Utility-Scripts
|
git clone https://gitea.it/krypt77/Bash-Utility-Scripts.git
|
||||||
cd Bash-Utility-Scripts
|
```
|
||||||
./install.sh
|
|
||||||
|
## 🚀 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.
|
||||||
|
Reference in New Issue
Block a user