~laumann/i3blocks-pomodoro

c0282703380f1ca715ee795bee69522214109eee — Thomas Bracht Laumann Jespersen 2 years ago 6aadd1f master
Quote all arguments to update_display()
1 files changed, 5 insertions(+), 5 deletions(-)

M pomodoro
M pomodoro => pomodoro +5 -5
@@ 76,7 76,7 @@ case "$st" in
				round=1

				change_state "active" $(date +%s)
				update_display "$FOCUS_LABEL" $FOCUS_SECS
				update_display "$FOCUS_LABEL" "$FOCUS_SECS"
				;;
			4)
				# Scroll up


@@ 108,10 108,10 @@ case "$st" in
				elapsed=$((now - t))
				if [ $elapsed -ge $FOCUS_SECS ]; then
					change_state "pause" $now
					update_display "$PAUSE_LABEL" $PAUSE_SECS
					update_display "$PAUSE_LABEL" "$PAUSE_SECS"
				else
					left=$((FOCUS_SECS - elapsed))
					update_display "$FOCUS_LABEL" $left
					update_display "$FOCUS_LABEL" "$left"
				fi
				;;
		esac


@@ 133,11 133,11 @@ case "$st" in
						full_text=" $INACTIVE_LABEL (rounds = $nrounds) "
					else
						change_state "active" $now
						update_display "$FOCUS_LABEL" $FOCUS_SECS
						update_display "$FOCUS_LABEL" "$FOCUS_SECS"
					fi
				else
					left=$((PAUSE_SECS - elapsed))
					update_display "$PAUSE_LABEL" $left
					update_display "$PAUSE_LABEL" "$left"
				fi
				;;
		esac