/auto-swoosh

On macOS, have a "Swoosh" sound even when Do Not Disturb is on

Primary LanguageShellMIT LicenseMIT

auto-swoosh

On macOS, produce a "Swoosh" sound when sending mail even when Do Not Disturb or some other focus is on.

Rationale

On macOS Mail.app, the "Swoosh" sound when sending mail is turned off whenever some focus such as "do not disturb" is activated. I think this is a bug, as I am rarely "disturbed" by my own actions. The enclosed app (an Automator script) fixes this by playing a "Swoosh" sound whenever Mail.app should, but does not.

Installation

  1. Download Auto Swoosh.app.zip from Releases and unzip it
  2. Move the resulting Auto Swoosh app to /Applications or ~/Applications and open it. (You may have to enable this explicitly.)
  3. Note that Auto Swoosh shows no notification that it is running - no menu bar icon, no dock, nada, niente, rien.
  4. However, you should now get a swoosh sound whenever Mail.app sends a mail - even when "do not disturb" or any other focus mode is on.
  5. The swoosh sound persists as long as Auto Swoosh is running. To stop it, enter pkill -f 'Auto Swoosh' in Terminal.
  6. You can also add Auto Swoosh to the list of apps that are automatically opened when you login.

Building

$ pip install appify
$ make
$ make install

How does it work?

Auto Swoosh is a tiny shell script lines that subscribes to messages from Mail.app named

Do Not Disturb is enabled, sound play aborted

and as soon as Mail.app logs this message while sending a mail, Auto Swoosh plays a swoosh sound (instead of Mail.app).

For details, see auto-swoosh.sh