base16-nix/convert.sh
2024-01-25 20:30:39 -07:00

11 lines
235 B
Bash

function convert {
echo "{"
awk '/^#define (\w+) (#\w+)/ { print " " $2 " = \"" $3 "\";" }' $1
echo "}"
}
for file in base16-xresources/xresources/*
do
convert $file > $(echo colors/$(basename -s .Xresources $file).nix)
done