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

Add an option -r for resetting timeouts on wake-up #156

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

Conversation

MikeWalrus
Copy link

This is useful for re-suspending the system when there is no activity after waking up. Fixes #144.

This is useful for re-suspending the system when there is no activity after
waking up. Fixes swaywm#144.
@MikeWalrus
Copy link
Author

This conflicts with #133. I'm not sure if this functionality can be implemented without listening to logind events.

@a-priestley
Copy link

This conflicts with #133. I'm not sure if this functionality can be implemented without listening to logind events.

Interesting observation..
My current configuration uses a simple hackjob with ydotool called to mock input in the after-resume hook. This too will stop working once systemd integration is dropped.

@MikeWalrus
Copy link
Author

@a-priestley I think idle-inhibit-unstable-v1 is a better alternative to ydotool. Without swayidle's logind integration, a separate deamon that inhibits idling for one second on PrepareSleep(false) is working for me. See https://gist.github.com/MikeWalrus/39c8b1ee4ce45a090e505be873624a97 .

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

Successfully merging this pull request may close these issues.

Only the first timeout is triggered when suspending
2 participants