Function i3status_ext::update [−][src]
pub fn update<R: BufRead, W: Write>(
reader: &mut R,
writer: &mut LineWriter<W>,
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
reader
:name
: 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