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

loop timeout events #150

Closed
UltraBlackLinux opened this issue Oct 19, 2023 · 2 comments
Closed

loop timeout events #150

UltraBlackLinux opened this issue Oct 19, 2023 · 2 comments

Comments

@UltraBlackLinux
Copy link

UltraBlackLinux commented Oct 19, 2023

I'd really appreciate an option to loop timeout events. Currently I have to do things like
swayidle timeout 10 script.sh resume script2.sh timeout 20 script.sh resume script2.sh
which is really clumsy and annoying.
could you improve this?

@kennylevinsen kennylevinsen transferred this issue from swaywm/swaylock Oct 19, 2023
@kennylevinsen
Copy link
Member

kennylevinsen commented Oct 19, 2023

Moved to swayidle.

You'd have to specify a use-case that would be reasonable for swayidle to cover.

You can just have one timeout that start a process that loops indefinitely on its own, and a resume that kills it.

@UltraBlackLinux
Copy link
Author

Moved to swayidle.

Oh I'm so sorry. I mixed up the repos

You can just have one timeout that start a process that loops indefinitely on its own, and a resume that kills it.

That actually seems like a pretty reasonable solution. I didn't even think of that, thanks!

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

2 participants