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

Different schedules depending on time of the day or day of the week #336

Closed
samcarter opened this issue Oct 17, 2022 · 3 comments
Closed
Labels
enhancement New feature or request
Milestone

Comments

@samcarter
Copy link

I'm wondering if it is possible to have different schedules depending on the time of the day or day of the week? For example more frequent updates during working hours and less frequent updates during the night or on the weekend?

I tried to put two swiftbar.schedule lines in my plugin

# <swiftbar.schedule>2 10-18 * * *</swiftbar.schedule>
# <swiftbar.schedule>15 19-9 * * *</swiftbar.schedule>

but swiftbar seems to only pick up the first one.

Swiftbar: 1.4.3 (422)
OS: macOS 11.6.8

@melonamin
Copy link
Contributor

More than one schedule is indeed not supported at the moment, but on the first glance should be easy to implement. Let me take a closser look.

@melonamin melonamin added the enhancement New feature or request label Oct 18, 2022
@melonamin melonamin added this to the 1.4.4 milestone Oct 23, 2022
@melonamin
Copy link
Contributor

melonamin commented Oct 23, 2022

Will release in 1.4.4, updated readme

@samcarter
Copy link
Author

Brilliant! Thanks a lot for the fast enhancement!

(I was using bitbar and xbar before I switched to swiftbar and I'm so glad I found your project! Swiftbar just works - no restarts or anything required, one can just leave it running for weeks without probelms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants