Skip to content

Commit

Permalink
Display number of done pomos during rest
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-ceccato committed Mar 18, 2024
1 parent 9dcf39c commit 70e6caa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions terminal/easypomo_term.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ get_online_step() {
seconds=$((remaining_time % 60))
formatted_time=$(printf '%02d:%02d' $minutes $seconds)

# Increment pomo_count by 1 for display
display_pomo_count=$((pomo_count + 1))
# If is not resting, and not long resting, increment pomo_count by 1
if [[ $is_resting == "false" ]] && [[ $is_long_resting == "false" ]]; then
display_pomo_count=$((pomo_count + 1))
else
display_pomo_count=$pomo_count
fi


status_string="${display_pomo_count}${status_icon} ${formatted_time}"

Expand Down

0 comments on commit 70e6caa

Please sign in to comment.