Unified · Split
| @@ -16,20 +16,3 @@ Clone, run `mk install` · 15 unmodified lines | |||
| 16 | See the man page. | 16 | See the man page. |
| 17 | 17 | ||
| 18 |  | 18 |  |
| 19 | |||
| 20 | ## Themes | ||
| 21 | |||
| 22 | At this moment the only two programs that actually use picker are | ||
| 23 | [Orca](https://git.sr.ht/~ft/orca) and [themed | ||
| 24 | rio(1)](https://ftrv.se/14). Nevertheless, since it supports loading | ||
| 25 | [themes](https://github.com/hundredrabbits/Themes), it makes sense to | ||
| 26 | describe how to get them on Plan 9: | ||
| 27 | |||
| 28 | ``` | ||
| 29 | ./themes.rc | ||
| 30 | ``` | ||
| 31 | |||
| 32 | The themes are stored in `$home/lib/theme`. Once an app that supports | ||
| 33 | picker is running, make it start the picker and in case you have the | ||
| 34 | plumb rule from the man page in `/mnt/plumb/rules`, you can just plumb | ||
| 35 | any theme and the app will receive the new colors. | ||
| @@ -1,10 +0,0 @@ | |||
| 1 | #!/bin/rc | ||
| 2 | rfork ne | ||
| 3 | |||
| 4 | mkdir -p $home/lib/theme && | ||
| 5 | hget https://github.com/hundredrabbits/Themes/tree/master/themes | \ | ||
| 6 | sed -n '/\/master\/themes\/.*\.svg/;s,.*"/(.*/)([^"]+).svg.*,https://raw.githubusercontent.com/\1\2.svg \2.theme,p' | \ | ||
| 7 | sed 's,blob/,,g' | \ | ||
| 8 | while (a=`{read}) { | ||
| 9 | 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) | ||
| 10 | } | ||