- vi /usr/local/share/xscreensaver/config/WolframAutomata.xml
-
- TODO: Finish writing this file after the command line options are finalized.
-
-The final step integrates WolframAutomata into an individual users's
-XScreensaver framework. If preferred, it could instead be done in the global
-XScreensaver config.
-
-Add the WolframAutomata entry under the `programs:` label, in the same list as
-all the other hacks. Position in the list is irrelevant, but ensure you don't
-paste WolframAutomata's entry into the middle of pre-existing, multi-line
-entries.
+ vi /usr/local/share/xscreensaver/config/wolframautomata.xml
+
+ <?xml version="1.0" encoding="ISO-8859-1"?>
+
+ <screensaver name="wolframautomata" _label="WolframAutomata">
+
+ <command arg="-root"/>
+
+ <string id="rule_number" _label="Rule number: " arg="-rule %" />
+ <boolean id="rnd_rule" _label="Random rule" arg-set="-random-rule" />
+
+ <string id="seed_density" _label="Seed density (%):" arg="-seed-density %" />
+ <boolean id="seed_left" _label="Seed left" arg-set="-seed-left" />
+ <boolean id="seed_center" _label="Seed center" arg-set="-seed-center" />
+ <boolean id="seed_right" _label="Seed right" arg-set="-seed-right" />
+
+ <string id="length" _label="Length (gen):" arg="-length %" />
+ <boolean id="rnd_length" _label="Random length" arg-set="-random-length" />
+
+ <string id="delay" _label="Delay (usec):" arg="-delay %" />
+ <boolean id="rnd_delay" _label="Random delay" arg-set="-random-delay" />
+
+ <string id="cell_size" _label="Cell size (px):" arg="-cell-size %" />
+ <boolean id="rnd_cellsize" _label="Random cell size" arg-set="-random-cell-size" />
+
+ <string id="color_index" _label="Color index (int):" arg="-color-index %" />
+
+ <string id="admiration" _label="Admiration (sec):" arg="-admiration-delay %" />
+
+ <_description>
+ Displays the time evolution of elementary cellular automata.
+
+ These automata consist of a line of cells, each of which may be either on or
+ off. To ensure every cell has neighbors, the two endpoints of the line connect
+ together, thereby forming a circular universe for the cells to inhabit. This
+ line is drawn horizontally on the screen.
+
+ Over time, this line of cells evolves according to rules, with some cells
+ switching on or off. Each new iteration is drawn below its predecessor,
+ leading the screen to scroll vertically over time.
+
+ The rules which govern the time evolution of this system depend only on the
+ current state of a given cell and the state of its two immediate neighbors.
+ These rules are formalized as Wolfram codes, where the code number is directly
+ convertible into a rule set.
+ </_description>
+ </screensaver>
+
+The next step integrates WolframAutomata into an individual user's XScreensaver
+config via the file `~/.xscreensaver`. If preferred, it could instead be done
+in the global XScreensaver config.
+
+In the `~/.xscreensaver` file, create a WolframAutomata entry under the
+`programs:` label in the same list as all the other hacks. Position in the
+list is irrelevant, but ensure you don't paste WolframAutomata's entry into the
+middle of pre-existing, multi-line entries. For context, the example below
+includes a multi-line entry, a GL entry and a plain entry. All that is needed
+is to insert the WolframAutomata line somewhere in the `programs:` list, as
+demonstrated.