We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ba0a2c commit d285fd5Copy full SHA for d285fd5
autorandr.py
@@ -138,6 +138,15 @@ def __lt__(self, other):
138
def __ge__(self, other):
139
return not (self < other)
140
141
+ def __ne__(self, other):
142
+ return not (self == other)
143
+
144
+ def __le__(self, other):
145
+ return (self < other) or (self == other)
146
147
+ def __gt__(self, other):
148
+ return self >= other and not (self == other)
149
150
def is_closed_lid(output):
151
if not re.match(r'(eDP(-?[0-9]\+)*|LVDS(-?[0-9]\+)*)', output):
152
return False
0 commit comments