System Info
The system-info component draws a custom set status widgets on screen. By
default, it displays the current time, a calendar, IP addresses and IOMMU
state.
Configuration
=============
A typical configuration looks as follows:
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
The config node supports the following attributes:
:default_timezone (default is "UTC-01"):
Defines the default POSIX timezone for clock and calendar widgets.
:background_color (default is "#115588"):
Defines the background color as #rrbbgg or #rrbbggaa.
The config node contains an arbitrary number of widgets that are arranged in
a column from top to bottom. A new column is started if a widget does not
fit into the current column.
Label widget
~~~~~~~~~~~~
This widget is instantiated by a '' node. The content of the node is
shown as plain text. An optional 'size' attribute may be provided to adjust
the font size (supported values: 8 to 48).
When provided with an optional 'rom' attribute, the content of the node is
ignored and, instead, the widget displays the first 128 characters of the
specified ROM module.
Examples:
! Show this text
!
Clock widget
~~~~~~~~~~~~
This widget is instantiated by a ' ' node.
It shows a digital clock in 24h-format. Optionally, a POSIX timezone can be
specified via a 'timezone' attribute.
Calendar widget
~~~~~~~~~~~~~~~
This widget is instantiated by a ' ' node.
It displays a calendar showing the current month and the current date. An
optional 'timezone' attribute can be specified to override the default timezone.
Battery widget
~~~~~~~~~~~~~~
This widget is instantiated by a ' ' node.
It displays the remaining percental capacity of each detected battery. The
battery state is parsed from the ROM whose label is specified by the mandatory
'rom' attribute. The widget is compatible with the state reported by the acpica
component.
Example:
!
Tabular widget
~~~~~~~~~~~~~~
This widget is instantiated by a '' node.
It displays a table showing selected state from a ROM containing XML data. The
ROM label is specified by the mandatory 'rom' attribute. An optional 'alt'
attribute specifies the text to show if no data could be extracted from the XML.
A hierarchy of '' and '' sub-nodes specifies how the state is
extracted from the XML.
::
Finds XML nodes of the given type at the current hierarchy-level in the source
ROM. Additional attributes can be specified to further constrain the processing
of the matching nodes. E.g. '' looks for
'' nodes with a 'name="uplink"' attribute.
::
Creates a row in the table, showing the label "Foo" in its left cell and the
value of the 'bar' attribute of the current XML node in its right cell. An
optional 'highlight' attribute can be specified to highlight the row as a
(sub)header of the table.
Track widget
~~~~~~~~~~~~
This is a layout widget that creates a new flex container insider the default
layout. The container takes up the full height so that the widgets within the
container are displayed in a separate column. In contrast to the default layout,
widgets are not spread evenly but vertically adjacent. The optional 'align'
attribute controls the vertical anchoring of widgets within the track. Accepted
values are: "top", "center" (default) and "bottom".
!
! Battery state
!
!