def click(self):
        """
        Has no action for the gamma line.
        Either enable or disable the widget if we are currently on the
        first line.
        Else decrease brightness/temperature accordingly
        """
        if self.error or self._line_index == self.gamma_idx:
            return
        elif self._line_index == self.brightness_idx:
            self.decrease_brightness()
        elif self._line_index == self.temperature_idx:
            self.decrease_temperature()
        else:
            self.reset_redshift() if self.is_enabled else self.run_redshift()
            self.is_enabled = not self.is_enabled
        self._set_text()

        Has no action for the gamma line.
        Either enable or disable the widget if we are currently on the
        first line.
        Else decrease brightness/temperature accordingly
        
libqtile/widget/redshift.py