#!/bin/bash
. "$(sfpath)" || exit 3
shellfu import pretty
xd2html() {
local name color
while read -r line;
do
name="${line%%:*}"
color="${line##*:}"
test -n "$name" || continue
test -n "$color" || continue
debug -v name color
test "$name" == "URxvt.background" && echo "$color" > "$Tmp/bg"
test "$name" == "URxvt.foreground" && echo "$color" > "$Tmp/fg"
echos "