def xrandr(self):
self.layout = self._get_layout()<EOL>self._set_available_combinations()<EOL>self._choose_what_to_display()<EOL>if len(self.available_combinations) < <NUM_LIT:2> and self.hide_if_single_combination:<EOL><INDENT>full_text = self.py3.safe_format(self.format, {"<STR_LIT>": "<STR_LIT>"})<EOL><DEDENT>else:<EOL><INDENT>if self.fixed_width is True:<EOL><INDENT>output = self._center(self.displayed)<EOL><DEDENT>else:<EOL><INDENT>output = self.displayed<EOL><DEDENT>full_text = self.py3.safe_format(self.format, {"<STR_LIT>": output})<EOL><DEDENT>response = {<EOL>"<STR_LIT>": self.py3.time_in(self.cache_timeout),<EOL>"<STR_LIT>": full_text,<EOL>}<EOL>if self.displayed == self.active_layout:<EOL><INDENT>response["<STR_LIT>"] = self.py3.COLOR_GOOD<EOL><DEDENT>elif self.displayed not in self.available_combinations:<EOL><INDENT>response["<STR_LIT>"] = self.py3.COLOR_BAD<EOL><DEDENT>if self.force_on_start is not None:<EOL><INDENT>sleep(<NUM_LIT:1>)<EOL>self._force_force_on_start()<EOL><DEDENT>if not self._no_force_on_change and self.force_on_change:<EOL><INDENT>self._force_on_change()<EOL><DEDENT>if self._no_force_on_change:<EOL><INDENT>self._no_force_on_change = False<EOL><DEDENT>if self.active_layout not in self.available_combinations:<EOL><INDENT>response["<STR_LIT>"] = self.py3.COLOR_DEGRADED<EOL>if self.fallback is True:<EOL><INDENT>self._fallback_to_available_output()<EOL><DEDENT><DEDENT>return response<EOL>
This is the main py3status method, it will orchestrate what's being
displayed on the bar.