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 arbitrary command as notification option on changes #55

Open
anaynayak opened this issue Jun 24, 2022 · 0 comments
Open

Allow arbitrary command as notification option on changes #55

anaynayak opened this issue Jun 24, 2022 · 0 comments

Comments

@anaynayak
Copy link

Thanks for building viddy! Love the improvements over watch .

I'm currently using the system bell --bell option to get notified whenever there are changes in the output of my command. However this requires one to keep a close watch on any audio notifications.

If viddy allows arbitrary commands to be run for notifications, I can then add a osascript notification that shows up on the desktop

e.g. viddy -d -b -n 20 ls --notify-command ./notify.sh

and notify.sh could contain something like:
osascript -e 'display notification "hello world!"'

Alternatively, direct integration with tools like https://github.com/gen2brain/beeep which will provide cross platform desktop notifications directly. I'm guessing this option will be less preferably since people might want to use viddy on non-desktop environments.

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

1 participant