shithub: picker

ref: 53822eb6d27c620c3d317a3857191de965d89e80
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)
}