added new fetch and fetchconf commands, to customize fastfetch

This commit is contained in:
2026-06-02 21:40:04 +02:00
parent 8f0fdffcad
commit cd1e8a11f9
90 changed files with 4747 additions and 191 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# Define directories
SRC_DIR="$HOME/.config/sdgos/fastfetch/src"
OUT_DIR="$HOME/.config/sdgos/fastfetch/gen"
# Create output directory if it doesn't exist
mkdir -p "$OUT_DIR"
# Loop over all image files in the source directory
for img in "$SRC_DIR"/*.{jpg,jpeg,png,webp}; do
# Skip if no files match the pattern
[ -e "$img" ] || continue
# Extract filename without extension
filename=$(basename -- "$img")
filename_noext="${filename%.*}"
# Output file path
out_file="$OUT_DIR/$filename_noext"
# Convert image to ASCII art using jp2a
# Using --term-fit for optimal terminal size, --background=dark for dark terminal
# Adjust options as needed (e.g., --width, --height, --chars, etc.)
jp2a --height=22 --colors --background=dark "$img" > "$out_file"
# Print status
echo "Converted $img to $out_file"
done
echo "Conversion complete. ASCII art files are in $OUT_DIR"