shithub: picker

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