olimorris / tmux-pomodoro-plus

🍅 Incorporate the Pomodoro technique into your tmux workflow
MIT License
274 stars 23 forks source link

Idea:Ability to run a command when the timer finishes #38

Open thewatts opened 4 months ago

thewatts commented 4 months ago

First off - this plugin is fantastic. I love it! Thank you so much for your hard work on it :)

I had a thought:

I've been setting a pomodoro, and I have it configured to notify the system when the timer ends, but I typically work with "Do Not Disturb" on - and so I miss the notification, and I'm typically so focused on my work - that I completely miss the fact that the status bar has changed.

I did some cursory Googling and found that you can send messages in tmux, as well as open popups, etc.

What if there were some configurations available to be able to run custom commands at the end of a timer? (ex: end of a focus timer, break timer, long break timer).

Given those options, I think I'd like to replicate the visual features of the Mac App Tadam: https://apps.apple.com/us/app/tadam/id531349534?mt=12

When timer ends

image

Break Timer

( Forces you to actually take a break ) CleanShot 2024-03-01 at 08 13 09@2x

olimorris commented 4 months ago

Hey @thewatts.

Great idea and I would be totally up for a PR that allows for this