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

Allow --not-when-* flags to apply to one timer #42

Open
sidequestboy opened this issue May 22, 2020 · 0 comments
Open

Allow --not-when-* flags to apply to one timer #42

sidequestboy opened this issue May 22, 2020 · 0 comments

Comments

@sidequestboy
Copy link

I had suggested in #41 that we extend the syntax of --not-when-* flags to allow specifying for individual timers. The original suggestion was:

xidlehook [FLAGS] [OPTIONS] --timer <duration> <command> <canceller> [--not-when-audio][--not-when-fullscreen]

Where OPTIONS includes

--timer <duration> <command> <canceller> [--not-when-audio][--not-when-fullscreen]

and FLAGS includes

--not-when-audio
--not-when-fullscreen

so that if a --not-when-* flag follows a --timer option, it applies only to that timer, and if it precedes all --timer options, it applies to all timers.

I'll try to make a PR about this once I figure out this rust stuff.

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

1 participant