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

RFC: Only execute resume command of timeout event if timeout command succeeds #123

Open
sammko opened this issue Apr 20, 2022 · 0 comments

Comments

@sammko
Copy link

sammko commented Apr 20, 2022

For example, it would be nice if resume did not get executed in the following case:

swayidle timeout 1 'exit 1' resume 'echo resume'

My usecase is checking if swaylock is running in the timeout command (using pgrep or such) to run dpms off. However, running dpms on in the resume clause unconditionally causes frame drops during normal usage and I find duplicating the conditional suboptimal.

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

No branches or pull requests

1 participant