Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output status in file #38

Merged

Conversation

michal-franc
Copy link
Collaborator

ENABLE_ECHO_PROGRESS_TO_FILES (true|false)

This is a special command that if true will start outputing pomodoro stats and progress to files.

Time in format: 00:01 / 25:00 to file

/tmp/pomodoro-time

Stats in format: {"done":8,"failed":7,"rests":7} to file

/tmp/pomodoro-stats

You can then read these form various applications.
One use-case - polybar to output timer and stats on polybar.
image

Comment on lines 14 to 16
DoneValue int `json:"done"`
InterruptedValue int `json:"failed"`
RestsValue int `json:"rests"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the 'Value' suffix there as it suggests some kind of setting. How about:
Completions
Interruptions
Rests
?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@michal-franc michal-franc merged commit 629ca16 into BartoszCoyote:master Sep 7, 2021
@michal-franc michal-franc deleted the output-status-in-file branch September 7, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants