pub fn update<IO: Io>(
io: &mut IO,
name: &str,
position: usize,
reverse: bool,
what: &str,
) -> Result<()>
Expand description
Insert new an item into i3status’s json string at given position. Call this within a loop continuously to add your custom item into the json data from i3status.
§Parameters
io
: input and output channels behindIo
traitname
: name of the i3status item (could be anything)position
: insert item at this position (from left to right)reverse
: reverseposition
to count from right to left.what
: text to insert