xrandr_rotate: move down on_click
@@ -91,18 +91,6 @@ class Py3status:
else:
self.displayed = self.horizontal_icon
- 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._switch_selection()
- elif button == 3:
- self._apply()
-
def xrandr_rotate(self):
all_outputs = self._get_all_outputs()
selected_screen_disconnected = (
@@ -136,6 +124,18 @@ class Py3status:
return response
+ 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._switch_selection()
+ elif button == 3:
+ self._apply()
+
if __name__ == "__main__":
"""
