Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

A way of getting sound notifications #26

Open
ccozkan opened this issue May 12, 2020 · 2 comments
Open

A way of getting sound notifications #26

ccozkan opened this issue May 12, 2020 · 2 comments

Comments

@ccozkan
Copy link

ccozkan commented May 12, 2020

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 s3rvac changed the title lazy way to get sound notifications A way of getting sound notifications May 13, 2020
@s3rvac
Copy link
Owner

s3rvac commented May 13, 2020

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

@bandithijo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants