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 dynamic timeout setting for idle inhibitor #3370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

torgiren
Copy link

This PR add option to enable dynamically change of idle inhibitor timeout.

my use case is I don't want to restart waybar any time I want to change a timeout.

With this feature, I'm able to change timeout dynamically using mouse scroll, start with left mouse button and stop with right button, so it's more predictable (I don't have to check if the inhibitor is enable or not, I just left click to enable, or right click to disable)

real live usecase:
I often setup timeout to 480 minutes when I start to work, so I can walk over the apartment without worrying if my screen saver will turn on or not... and later, I usually setup it to 120 when playing some movie in the evening

@torgiren
Copy link
Author

I also tried to make it backward compatible,
so that's why there are "ifs", so with this feature disabled, module should behave same as before

@Alexays Alexays force-pushed the master branch 2 times, most recently from d623a89 to a4d31ab Compare September 13, 2024 07:40
Signed-off-by: Marcin Fabrykowski <[email protected]>
@torgiren
Copy link
Author

rebased to origin/master

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

Successfully merging this pull request may close these issues.

1 participant