summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
Diffstat (limited to 'py3status')
-rw-r--r--py3status/modules/pomodoro.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/py3status/modules/pomodoro.py b/py3status/modules/pomodoro.py
index db2a60d..bf86e96 100644
--- a/py3status/modules/pomodoro.py
+++ b/py3status/modules/pomodoro.py
@@ -27,7 +27,21 @@ class Py3status:
if event['button'] == 1:
if self.status == 'stop':
self.status = 'start'
- self.run = True
+ self.run = True
+
+ elif self.status == 'break':
+ self.run = True
+
+ elif self.status == 'start':
+ if self.run:
+ self.status = 'pause'
+ self.run = False
+ else:
+ self.run = True
+
+ elif self.status == 'pause':
+ self.status = 'start'
+ self.run = True
elif event['button'] == 2:
self.__setup('stop')