timer: add urgent
@@ -135,12 +135,19 @@ class Py3status:
timer = self.py3.composite_create(composites)
- return {
+ response = {
'cached_until': cached_until,
'full_text': self.py3.safe_format(self.format, {'timer': timer})
}
+ if self.done:
+ response['urgent'] = True
+ return response
def on_click(self, event):
+ if self.done:
+ self.done = False
+ return
+
deltas = {
'hours': 3600,
'mins': 60,
