I have a dumb work related chrome thing, i’d like to make it so that when a certain notification sound plays in chromium, my computer does a few things automatically for me
Does anyone know a good way to make this happen?
I imagine it’d have to be setup like:
when chrome starts playing audio && check if that audio matches soundfile.ogg && myscript.sh, but I don’t know any good cli utilities that could get something like that done, and if there are any better ideas!
XY problem?
It’s really not in this case, I can see why people think that since i’ve been vague, but tbh I thought somebody would have already made an easy sound recognition program and I just hadn’t seen it, and that once someone pointed that to me the rest would be easy.
Here is the entirety of the problem:
These factors cause me to want to run a script once the noise is recognized, only if the noise is playing in a particular app. I’m using pipewire/hyprland on arch.
edit: actually they have, it should be really easy with this: https://github.com/worldveil/dejavu
This is absolutely an xy problem. Your problem is that you need to programmatically respond to notifications across multiple applications
You are asking for help with a solution based on notification sounds which is one possible solution but a bit of a weird one
https://chromewebstore.google.com/detail/distill-web-monitor/inlikjemeeknofckkjolnjbpehgadgge?pli=1
That’s an interesting solution that i’d rather avoid because it’s proprietary
Also, that wouldn’t distinguish the two states of call/email, I don’t think.
It was the first result i found for ‘monitor webpage chrome’. There’s a very good chance that what you’re after is just two or three results lower. I promise it would be a lot easier than developing an entirely new solution that works based on speaker sounds. Bonus, these extensions have basic stuff like sms or email support right out of the box.