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

Feature request: seconds support for scheduling #408

Open
byung806 opened this issue Feb 9, 2024 · 4 comments
Open

Feature request: seconds support for scheduling #408

byung806 opened this issue Feb 9, 2024 · 4 comments

Comments

@byung806
Copy link

byung806 commented Feb 9, 2024

For many timer/countdown apps, it is necessary to update the menu bar text every second. Unfortunately, cron syntax only supports down to minutes (due to only checking for cron tasks every minute on Linux).

However, this app is able to update every second. I am suggesting an expansion to the scheduling functionality for seconds:
Existing:
(0-59) (0-23) (1-31) (1-12) (0-6) (minutes, hours, days, month, weekday)
Suggested:
(0-59) (0-59) (0-23) (1-31) (1-12) (0-6) (seconds, minutes, hours, days, month, weekday)

@melonamin
Copy link
Contributor

Hey @byung806, you know that you can configure schedule using special syntax in the file name? There is support for seconds and even milliseconds.

I'm using a small thirdparty library for cron-syntax parsing and I would rather not touch it.

@byung806
Copy link
Author

Yes, I'm aware of using 1s or 1ms to update the item every second/ms, but I haven't figured out a way to only update when needed.
For context, I'm making a script that tracks how much time is left in my period at school (counts down to the next bell). It would need to update every second while school is going on, but when there's no school, for example on the weekends, I don't want the app to update at all.
Is this possible using the name special syntax? Or a combination of the name syntax with the scheduling cron syntax?

@melonamin
Copy link
Contributor

Ah, I see. No, it is not possible with the current feature set.

Let me think about it.

@byung806
Copy link
Author

Please let me know if this becomes possible. Thank you for your efforts!

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