From dca23708b4cb2ea678b2af75c138dea949e22327 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Thu, 17 Nov 2011 16:52:28 +0100 Subject: [PATCH] Fixed a focus net problem --- pomodoro | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pomodoro b/pomodoro index 84b2b3a..099a5a6 100755 --- a/pomodoro +++ b/pomodoro @@ -24,13 +24,18 @@ POMODORO_LONG_RELAX_TIME=30 # during your work session. # not you can overide these functions in $HOME/.pomodoro pomodoro_work_started() { - [[ -x =get-shit-done ]] && sudo =get-shit-done work + [[ -x =get-shit-done ]] && { + sudo =get-shit-done work + print -- "[focus on]" + } } pomodoro_work_time_ended() {} -pomodoro_pause_started() {} -pomodoro_pause_time_ended() { +pomodoro_pause_started() { [[ -x =get-shit-done ]] && sudo =get-shit-done play } +pomodoro_pause_time_ended() { + pomodoro_work_started +} # used to list latests task names typeset -U latestTasks