You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use crontab and the stretchly CLI to align Stretchly's breaks with my daily schedule (and to remind me to use them in the ways I intended at the start of the day 😉 😬 ...)
Stretchly's CLI implementation has come a long way (kudos!), but today I found myself unable to modify the timing of the next break, which means anytime I reboot / switch user / change device (pretty regular occurrences for me), I lose the benefit of whatever my next reminder would have been if I'd stayed logged in.
It's easy enough for a script to calculate the minutes remaining until the next block of time starts, and I can pass this to the pause command, but Stretchly doesn't start a break when it resumes, so that doesn't help.
I could add cron jobs to activate each break, but that would limit the usefulness of Stretchly's tray menu countdown and introduce other side-effects (including a possible race condition), so solving it another way would be preferable.
Possible solution
Is the Stretchly community amenable to the mini and long CLI commands supporting an optional time interval to wait before skipping to the given break? Something similar to the pause command's --duration option, but without indefinitely or until-morning?
I'll open a PR with my implementation of a --wait, -w option as a starting point (written quickly to meet a personal need, but I'm not suggesting it's ready to merge--unless I guessed what would work for @hovancik and others especially well!)
Alternative solutions
Described above ⬆️
Additional information
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version
Existing requests
What operating system are you using?
Linux
Operating System Version
Arch Linux
Problem description
I use
crontab
and thestretchly
CLI to align Stretchly's breaks with my daily schedule (and to remind me to use them in the ways I intended at the start of the day 😉 😬 ...)Stretchly's CLI implementation has come a long way (kudos!), but today I found myself unable to modify the timing of the next break, which means anytime I reboot / switch user / change device (pretty regular occurrences for me), I lose the benefit of whatever my next reminder would have been if I'd stayed logged in.
It's easy enough for a script to calculate the minutes remaining until the next block of time starts, and I can pass this to the
pause
command, but Stretchly doesn't start a break when it resumes, so that doesn't help.I could add cron jobs to activate each break, but that would limit the usefulness of Stretchly's tray menu countdown and introduce other side-effects (including a possible race condition), so solving it another way would be preferable.
Possible solution
Is the Stretchly community amenable to the
mini
andlong
CLI commands supporting an optional time interval to wait before skipping to the given break? Something similar to thepause
command's--duration
option, but withoutindefinitely
oruntil-morning
?I'll open a PR with my implementation of a
--wait, -w
option as a starting point (written quickly to meet a personal need, but I'm not suggesting it's ready to merge--unless I guessed what would work for @hovancik and others especially well!)Alternative solutions
Described above ⬆️
Additional information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: