summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
authorrixx <rixx-git@cutebit.de>2015-03-19 14:49:22 +0100
committerrixx <rixx-git@cutebit.de>2015-03-19 14:49:22 +0100
commit20c07b755976807b68d3940dbe7b4e487f2e5c69 (patch)
tree8fb49712e44883aa723ee2ec4304e6572688f7e0 /py3status
parentcb0170e3d4ac700211d3e2a69ef3c2556fdbc3b9 (diff)
replaced 'pause' by 'break'
'break' was already used for notifications and this way 'pause' can be used when a running Pomodoro needs to be paused (to be resumed later)
Diffstat (limited to 'py3status')
-rw-r--r--py3status/modules/pomodoro.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/py3status/modules/pomodoro.py b/py3status/modules/pomodoro.py
index 1a167b9..9b8fb63 100644
--- a/py3status/modules/pomodoro.py
+++ b/py3status/modules/pomodoro.py
@@ -34,7 +34,7 @@ class Py3status:
self.run = False
elif event['button'] == 3:
- self.__setup('pause')
+ self.__setup('break')
self.run = False
@property
@@ -61,7 +61,7 @@ class Py3status:
self.prefix = 'Pomodoro'
self.timer = self.timer_pomodoro
- elif status == 'pause':
+ elif status == 'break':
self.prefix = 'Break #%d' % self.breaks
if self.breaks > self.max_breaks:
self.timer = self.timer_long_break
@@ -80,9 +80,9 @@ class Py3status:
self.run = False
self.__i3_nagbar()
if self.status == 'start':
- self.__setup('pause')
- self.status = 'pause'
- elif self.status == 'pause':
+ self.__setup('break')
+ self.status = 'break'
+ elif self.status == 'break':
self.__setup('start')
self.status = 'start'
@@ -114,7 +114,7 @@ class Py3status:
if self.status == 'start':
response['color'] = i3s_config['color_good']
- elif self.status == 'pause':
+ elif self.status == 'break':
response['color'] = i3s_config['color_degraded']
else:
response['color'] = i3s_config['color_bad']