Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow arbitrary command as notification option on changes #55

Open
anaynayak opened this issue Jun 24, 2022 · 1 comment
Open

Allow arbitrary command as notification option on changes #55

anaynayak opened this issue Jun 24, 2022 · 1 comment

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.

@blacktop
Copy link

ghostty doesn't support bell yet 😞

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants