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!

    • Communist@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      Not if it’s specified to a single app

      My chrome is literally only used for this, as are my other ideas, so, as long as it’s half-decent at one specific sound per app it should work…

      in theory

    • teawrecks@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      I would be interested in a solution to OP’s specific question. I have a friend who will play a particular annoying meme clip over discord. I would like something that can listen for that clip being played, and immediately disconnect him from the voice channel 😁.

      Doesn’t need to be perfect. Misfires are also acceptable.