def dpms(self):
if "<STR_LIT>" in self.py3.command_output("<STR_LIT>"):<EOL><INDENT>_format = self.icon_on<EOL>color = self.color_on<EOL><DEDENT>else:<EOL><INDENT>_format = self.icon_off<EOL>color = self.color_off<EOL><DEDENT>icon = self.py3.safe_format(_format)<EOL>return {<EOL>"<STR_LIT>": self.py3.time_in(self.cache_timeout),<EOL>"<STR_LIT>": self.py3.safe_format(self.format, {"<STR_LIT>": icon}),<EOL>"<STR_LIT>": color,<EOL>}<EOL>
Display a colorful state of DPMS.