def on_click(self, event):
        """
        Click events
            - left click & scroll up/down: switch between rotations
            - right click: apply selected rotation
        """
        button = event["button"]
        if button in [1, 4, 5]:
            self.scrolling = True
            self._switch_selection()
        elif button == 3:
            self._apply()

        Click events
            - left click & scroll up/down: switch between rotations
            - right click: apply selected rotation
        
py3status/modules/xrandr_rotate.py