def run_redshift(self):
        """
        Run redshift command with defined parameters.
        """
        try:
            subprocess.run(
                [
                    self.redshift_path,
                    "-P",
                    "-O",
                    str(self.temperature),
                    "-b",
                    str(self.brightness),
                    "-g",
                    self.gamma_val._redshift_fmt(),
                ],
                check=True,
            )
        except (TypeError, FileNotFoundError) as e:
            self.widget_error(
                f"redshift: could not find redshift executable, check redshift_path: {e}"
            )
        except subprocess.CalledProcessError as e:
            self.widget_error(f"redshift: could not enable redshift: {e}")

        Run redshift command with defined parameters.
        
libqtile/widget/redshift.py