osworld_tasks_files / gimp_undo.sh
ashutoshr-hf's picture
Upload gimp_undo.sh
0a9e74e verified
raw
history blame contribute delete
482 Bytes
#!/bin/bash
# ===============================================================
# GIMP Configuration Status (Key=Value format)
# Trainer: Ashutosh Raut
# ===============================================================
CONFIG_DIR="$HOME/.config/GIMP/2.10"
GIMPRC="$CONFIG_DIR/gimprc"
if [ ! -f "$GIMPRC" ]; then
echo "ERROR=gimprc_missing"
exit 1
fi
undo_val=$(grep -Eo '\(undo-levels [0-9]+\)' "$GIMPRC" | awk '{print $2}' | tr -d ')')
echo "UNDO_LEVELS=${undo_val:-unknown}"