def _layout_changed(self):
        """
        check if the known monitor setup match current setup
        """
        return (
            self.layout["connected"] != self.old_layout["connected"]
            or self.layout["disconnected"] != self.old_layout["disconnected"]
        )

        check if the known monitor setup match current setup
        
py3status/modules/xrandr.py