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

Run script on break #10

Open
ThinkChaos opened this issue Jan 5, 2025 · 2 comments
Open

Run script on break #10

ThinkChaos opened this issue Jan 5, 2025 · 2 comments

Comments

@ThinkChaos
Copy link

Hi,

Thank you for this utility!
It's the only sane program I could find (no heavy dependencies, small resource usage, and Wayland support).

Since Ianny is aiming for simplicity, I think it'd be great to have allow running a command when a break starts/end. That way we can have customization and simplicity :)
Ideally a different script for each event so the script can be a one liner (as opposed to single script with an arg that needs parsing).
Is that a feature you'd want to implement or accept a PR for?

@zefr0x
Copy link
Owner

zefr0x commented Jan 5, 2025

Can't you just listen to stdout waiting for a break log message to run a script?

I believe it can be done with a while loop in a simple shell script.

@ThinkChaos
Copy link
Author

Yes that's possible but also requires some parsing and would be likely to silently break in the future.

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

No branches or pull requests

2 participants