shithub: picker

ref: 659fc7d347af59eccc12b5113a6a098c90915cb7
dir: /themes.rc/

View raw version
#!/bin/rc
rfork ne

mkdir -p $home/lib/theme &&
hget https://github.com/hundredrabbits/Themes/tree/master/themes | \
sed -n '/\/master\/themes\/.*\.svg/;s,.*"/(.*/)([^"]+).svg.*,https://raw.githubusercontent.com/\1\2.svg \2.theme,p' | \
sed 's,blob/,,g' | \
while (a=`{read}) {
	hget $a(1) | sed -n 's/.*id=.([a-z_A-F0-9]+).*fill=.*#([0-9a-fA-F]+).*/\1	\2/p' > $home/lib/theme/$a(2)
}