ref: 37b121149086b93eac0f79d983948fc7379b736d
parent: d92cd2eea68a9a15f2067adbd7afe0eaec8ea9f1
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Mar 15 21:45:48 EDT 2020
update the readme
--- a/README.md
+++ b/README.md
@@ -20,3 +20,17 @@
See the man page.
![screenshot](picker.png)
+
+## Themes
+
+At this moment the only program that actually uses picker is
+[Orca](https://github.com/ftrvxmtrx/orca9).
+Nevertheless, since it supports loading
+[themes](https://github.com/hundredrabbits/Themes), it makes sense to
+describe how to get them on Plan 9:
+
+```
+./themes.rc
+```
+
+The themes are stored in `$home/lib/theme`.
--- /dev/null
+++ b/themes.rc
@@ -1,0 +1,10 @@
+#!/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)
+}