shithub: picker

ref: 149d0efdd886eb0b9e78690376ed51e4716397a3
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)
}