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!

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    39
    arrow-down
    1
    ·
    3 months ago

    This smells of “So I work from home, but want to sleep, but if my boss pings me on teams I want an alarm to wake me up”

    • Communist@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      29
      ·
      3 months ago

      Is there anything wrong with that? Hahaha, it’s pretty similar but not quite that

      • Quazatron@lemmy.world
        link
        fedilink
        arrow-up
        11
        arrow-down
        1
        ·
        3 months ago

        Lazy people tend to be creative people, which is good, especially when confronted with boring activities.

        I’d solve it in hardware, maybe an ESP32 dongle with a mic pretending to be a keyboard.

        Seriously though, sounds like you need a more creative or fulfilling job.

      • ReversalHatchery@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 months ago

        “So I work from home, but want to sleep play games, but if my boss pings me on teams I want an alarm to wake me up”

        Depending on your employer it could be well okay

    • interdimensionalmeme@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      3 months ago

      What about have an LLM autoanswer and only wake me up if the bossman keeps talking and also autofill my timecard so I don’t have to