8000 interval option for exec-if · Issue #943 · polybar/polybar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

interval option for exec-if #943

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

Closed
Nervengift opened this issue Jan 6, 2018 · 1 comment · Fixed by #2630
Closed

interval option for exec-if #943

Nervengift opened this issue Jan 6, 2018 · 1 comment · Fixed by #2630
Labels

Comments

@Nervengift
Copy link

I would like to have an additional parameter to the custom/script module that allows me to set an interval for the exec-if command that is different from the standard interval (a backoff timer for when the command fails).

One of my use cases wowuld be my script for showing information about the train I'm in: While I want the information to be refreshed every few seconds, most of the time I'm not on a train and so the check should not run too often.

My implementation idea would be:

  • add a exec-if-backoff parameter (or maybe interval-exec-if, interval-backoff?)
  • if the exec-if command fails and exec-if-backoff is present, wait for the configured backoff time (instead of interval) before runing it again
  • when exec-if succeeds, execute exec then wait for interval
@patrick96
Copy link
Member

Added to the list.
For now you can probably implement the same functionality inside the script itself.

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

Successfully merging a pull request may close this issue.

2 participants
0