Theme fastfetch from the active palette

This commit is contained in:
2026-09-21 02:10:39 +00:00
parent 5372c6ea29
commit 8d8dee2342
6 changed files with 81 additions and 7 deletions
+1
View File
@@ -203,6 +203,7 @@ add_template_value() {
if [[ $value =~ ^#[0-9A-Fa-f]{6}$ ]]; then
rgb=$(hex_to_rgb "$value")
printf 's|{{ %s_rgb }}|%s|g\n' "$key" "$rgb" >>"$sed_script"
printf 's|{{ %s_ansi }}|38;2;%s|g\n' "$key" "${rgb//,/;}" >>"$sed_script"
fi
}