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

Hook for org-pomodoro-long-break-started-hook #87

Open
Moanrisy opened this issue Mar 30, 2020 · 2 comments
Open

Hook for org-pomodoro-long-break-started-hook #87

Moanrisy opened this issue Mar 30, 2020 · 2 comments

Comments

@Moanrisy
Copy link

I like to do specific thing when long break started.
Example: launch browser and read the news

But only long-break-finished-hook that already exist, I think we need more hook like

org-pomododo-short-break-started-hook and
orrg-pomododo-long-break-started-hook

@telotortium
Copy link
Contributor

Check the value of org-pomodoro-state in a function run from org-pomodoro-finished-hook. Technically, none of the break-specific hooks are needed.

@Moanrisy
Copy link
Author

Moanrisy commented Apr 1, 2020

I'm sorry, I think I didn't make my problem clear.

I want to do different thing when specific hook happen.

When pomodoro finish, it will trigger short or lonng break.
When short break happen, I want to run "chrome link1 link2"
When long break happen, I want to run "chrome link3"

then when short-break-finish or long-break-finish hook, I want to run command to kill chrrome process

If I use org-pomodoro-finished-hook, I can only do 1 thing for short and long beak.

I can still use org-pomdoro-finished-hook then run "chrome link1 link2 link3", but it didn't work If I want to use different app for short break and long break

ex: I want to run anki app when I have 5 min break
I want to run chrome when I have 20 min beak

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

No branches or pull requests

2 participants