old_contents: # -*- coding: utf-8 -*-
  """
  Activate or deactivate DPMS and screen blanking.
  
  This module allows activation and deactivation
  of DPMS (Display Power Management Signaling)
  by clicking on 'DPMS' in the status bar.
  
  @author Andre Doser <dosera AT tf.uni-freiburg.de>
  """
  
  from os import system
  
  
  class Py3status:
      """
      """
      def dpms(self, i3s_output_list, i3s_config):
          """
          Display a colorful state of DPMS.
          """
  
          self.run = system('xset -q | grep -iq "DPMS is enabled"') == 0
  
          response = {
              'full_text': 'DPMS'
          }
  
          if self.run:
              response['color'] = i3s_config['color_good']
          else:
              response['color'] = i3s_config['color_bad']
          return response
  
      def on_click(self, i3s_output_list, i3s_config, event):
          """
          Enable/Disable DPMS on left click.
          """
          if event['button'] == 1:
              if self.run:
                  self.run = False
                  system("xset -dpms;xset s off")
              else:
                  self.run = True
                  system("xset +dpms;xset s on")
              system("killall -USR1 py3status")
  
new_contents: # -*- coding: utf-8 -*-
  """
  Activate or deactivate DPMS and screen blanking.
  
  This module allows activation and deactivation
  of DPMS (Display Power Management Signaling)
  by clicking on 'DPMS' in the status bar.
  
  @author Andre Doser <dosera AT tf.uni-freiburg.de>
  """
  
  from os import system
  
  
  class Py3status:
      """
      """
      def dpms(self, i3s_output_list, i3s_config):
          """
          Display a colorful state of DPMS.
          """
  
          self.run = system('xset -q | grep -iq "DPMS is enabled"') == 0
  
          response = {
              'full_text': 'DPMS'
          }
  
          if self.run:
              response['color'] = i3s_config['color_good']
          else:
              response['color'] = i3s_config['color_bad']
          return response
  
      def on_click(self, i3s_output_list, i3s_config, event):
          """
          Enable/Disable DPMS on left click.
          """
          if event['button'] == 1:
              if self.run:
                  self.run = False
                  system("xset -dpms;xset s off")
              else:
                  self.run = True
                  system("xset +dpms;xset s on")
  
subject: remove useless py3status forced refresh