def _emerge_running(self):
        """
        Check if emerge is running.
        Returns true if at least one instance of emerge is running.
        """
        try:
            self.py3.command_output(["pgrep", "emerge"])
            return True
        except Exception:
            return False

        Check if emerge is running.
        Returns true if at least one instance of emerge is running.
        
py3status/modules/emerge_status.py