11 lines
235 B
Bash
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
|