Reset timers after inhibitor has been taken off if idled #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This addresses #26.
Got annoyed with monitor staying on after video is over. It would be better to use idle-inhibit-unstable-v1 with a fake surface and let Hyprland just reset and halt timers, but I'm not writing that. The conditions shouldn't trigger too often anyways, so with <10 hooks on average it should be harmless.
Tested for about 2 days, but I don't do c++ and wayland-proto, so check for sanity please. If you don't like that copy-paste and want me to create clean methods for clearing notifications and re-registering them separately, do tell.
(and if someone manages to hot-reload config in an idle state, that's on them)