Sets a command whose output will be used as the status text.
The stdout and stderr` of the command will
be overwritten by this function. The stdout will be used for the status text and the
stderr will be appended to the compositor log.
The format of stdout is determined by the format parameter.