Function i3status_ext::update[][src]

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.


  • io: input and output channels behind Io trait
  • name: name of the i3status item (could be anything)
  • position: insert item at this position (from left to right)
  • reverse: reverse position to count from right to left.
  • what: text to insert