From 20c07b755976807b68d3940dbe7b4e487f2e5c69 Mon Sep 17 00:00:00 2001 From: rixx Date: Thu, 19 Mar 2015 14:49:22 +0100 Subject: 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) --- py3status/modules/pomodoro.py | 12 ++++++------ 1 file 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'] -- cgit v1.3