Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
/ Mute Public archive

A command-line utility to enable or disable "Do Not Disturb" on macOS

License

Notifications You must be signed in to change notification settings

boneskull/Mute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mute

A command-line utility to enable or disable "Do Not Disturb" on macOS

Motivation

I want to automatically toggle "Do Not Disturb" at multiple times during the day. macOS' System Preferences does provide for this. I can couple this with user agents via launchd.

Also I wanted to try to do something with swift. It's pretty cool, but Core Foundation isn't.

Install

Given that I don't know anything about code signing, packaging, nor distribution of a macOS app, you're going to have to:

  1. Install XCode, etc.

  2. Clone this repo and navigate to your working copy

  3. Run this to build:

    $ swift build -c release -Xswiftc -static-stdlib
  4. Copy resulting .build/release/mute to somewhere in your $PATH, e.g.:

    $ cp .build/release/mute /usr/local/bin/

Usage

Enable "Do Not Disturb"

$ mute

Disable "Do Not Disturb"

$ mute off

Prior Art

License

© 2018 Christopher Hiller. Licensed MIT

About

A command-line utility to enable or disable "Do Not Disturb" on macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages