shithub: picker

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