def _apply_workspaces(self, combination, mode):
        """
        Allows user to force move a comma separated list of workspaces to the
        given output when it's activated.

        Example:
            - DP1_workspaces = "1,2,3"
        """
        if len(combination) > 1 and mode == "extend":
            sleep(3)
            for output in combination:
                workspaces = getattr(self, f"{output}_workspaces", "").split(",")
                for workspace in workspaces:
                    if not workspace:
                        continue
                    # switch to workspace
                    cmd = f'{self.py3.get_wm_msg()} workspace "{workspace}"'
                    self.py3.command_run(cmd)
                    # move it to output
                    cmd = '{} move workspace to output "{}"'.format(self.py3.get_wm_msg(), output)
                    self.py3.command_run(cmd)
                    # log this
                    self.py3.log(f"moved workspace {workspace} to output {output}")

        Allows user to force move a comma separated list of workspaces to the
        given output when it's activated.

        Example:
            - DP1_workspaces = "1,2,3"
        
py3status/modules/xrandr.py