diff options
| author | rixx <rixx-git@cutebit.de> | 2015-03-19 15:15:42 +0100 |
|---|---|---|
| committer | rixx <rixx-git@cutebit.de> | 2015-03-19 15:15:42 +0100 |
| commit | c2e23c442f9df310d94ff9b44835096a43257001 (patch) | |
| tree | 45b8fd79cf44b2348ccd78e9869883bd5226f37c /py3status | |
| parent | 20c07b755976807b68d3940dbe7b4e487f2e5c69 (diff) | |
A second right-click stops the ongoing break
In case a break is too long for you
Diffstat (limited to 'py3status')
| -rw-r--r-- | py3status/modules/pomodoro.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/py3status/modules/pomodoro.py b/py3status/modules/pomodoro.py index 9b8fb63..db2a60d 100644 --- a/py3status/modules/pomodoro.py +++ b/py3status/modules/pomodoro.py @@ -34,7 +34,10 @@ class Py3status: self.run = False elif event['button'] == 3: - self.__setup('break') + if self.status == 'break': + self.__setup('start') + else: + self.__setup('break') self.run = False @property |
