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

Integrate sleep / wake notifications? #108

Closed
mdbraber opened this issue Jan 31, 2019 · 2 comments
Closed

Integrate sleep / wake notifications? #108

mdbraber opened this issue Jan 31, 2019 · 2 comments

Comments

@mdbraber
Copy link
Contributor

mdbraber commented Jan 31, 2019

I'm building a radio player using rumps (https://github.com/mdbraber/radiobar). I'd like to catch relevant sleep / wake notifications to stop playing when my Macbook goes to sleep. An example implementation of what I'm looking for is described here:
https://stackoverflow.com/questions/31091413/how-to-best-catch-sleep-and-resume-events-for-osx (using NSWorkspaceWillSleepNotifaction and NSWorkspaceDidWakeNotification from AppKit)

Would it be possible to integrate this into rumps?

@mdbraber
Copy link
Contributor Author

I've created a possible PR #109

@jaredks
Copy link
Owner

jaredks commented Feb 2, 2019

#109

@jaredks jaredks closed this as completed Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants