s3rvac / weechat-notify-send

A WeeChat script that sends highlight and message notifications through notify-send.
MIT License
176 stars 19 forks source link

A way of getting sound notifications #26

Open ccozkan opened 4 years ago

ccozkan commented 4 years ago

Hey, thanks for this great script! I wanted to share my lazy way to get sound notifications for those people who might be interested in✌

    with open(os.devnull, 'wb') as devnull:
        try:
            subprocess.check_call(
                notify_cmd,
                stderr=subprocess.STDOUT,
                stdout=devnull,
            )
            subprocess.check_call(
                ['aplay', '/path/to/sound/file.wav'],
                stderr=subprocess.STDOUT,
                stdout=devnull,
            )
s3rvac commented 4 years ago

Thank you. Maybe I will add support for something like this into the script.

bandithijo commented 4 years ago

Wogh! I can't wait! ☺️☺️☺️