Skip to content
markksantosPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Shhh

A tiny macOS menu bar app that mutes and unmutes your system microphone with one global shortcut — so a single key combo silences you in every app (Zoom, Meet, Slack, Discord, recording tools) instead of hunting for each app's own mute button.

  • Toggle mode — press ⌃⇧M to flip mute on/off.
  • Push-to-Talk mode — hold the shortcut to talk, release to mute.
  • Configurable shortcut — record any modifier + key combo from the menu.
  • Mute overlay — a brief on-screen HUD confirms the new state.
  • Launch at login — optional, via SMAppService (macOS 13+).
  • No network access — the app never phones home.

The repo also contains a Next.js marketing site under landing/.


Repository layout

Package.swift              SwiftPM manifest (3 targets + tests)
Sources/
  ShhhEngine/              CoreAudio mute, hotkey manager, login item (no UI)
  ShhhUI/                  SwiftUI menu bar view, overlay, shortcut recorder
  ShhhApp/                 @main MenuBarExtra entrypoint
Tests/ShhhEngineTests/     XCTest unit tests for the engine
Resources/
  Info.plist              LSUIElement + NSMicrophoneUsageDescription
  Shhh.entitlements       Direct/notarized distribution (hardened runtime)
  Shhh.MAS.entitlements   Mac App Store (sandboxed) variant
build-app.sh               Assembles dist/Shhh.app (universal, signed)
init.sh                    Debug build + run for quick iteration
landing/                   Next.js 16 marketing site (static export)

How the mic mute works

MicController (in ShhhEngine) talks to CoreAudio:

  1. It resolves the default input device.
  2. If the device exposes kAudioDevicePropertyMute, it sets that hardware mute flag — the cleanest, most reliable path.
  3. If not (some aggregate/virtual devices), it falls back to saving the input volume and dropping it to 0, restoring it on unmute.
  4. A property listener re-applies the mute when the default input device changes (e.g. you unplug a headset), so mute survives device switches.

How the hotkey works

HotkeyManager (in ShhhEngine) uses two mechanisms depending on mode:

  • Toggle → Carbon RegisterEventHotKey. Fires on key-down only, works everywhere including the App Store sandbox, and needs no special permission.
  • Push-to-Talk → a CGEvent tap, because Carbon hotkeys can't observe key-up. The tap reports key-down (go live) and key-up (mute). This requires the Accessibility permission; if it isn't granted, the app surfaces a warning with a deep link to System Settings.

Because the PTT event tap can't run inside the App Store sandbox, a Mac App Store build should ship Toggle mode only. See Distribution below.


Requirements

  • macOS 13 (Ventura) or later
  • Xcode 15+ / Swift 5.9+ toolchain (for building the app)
  • Node 18+ (for the landing page)

Build & run the app (development)

./init.sh            # swift build (debug) + run in the menu bar
# or manually:
swift build
.build/debug/ShhhApp &
swift test           # run the unit tests

Running the bare debug binary works for iterating on logic, but it is not a real .app: launch-at-login registration and a stable Accessibility permission require a signed bundle. For that, use build-app.sh.

Build a distributable .app

./build-app.sh
# → dist/Shhh.app  (universal arm64 + x86_64, ad-hoc signed)
open dist/Shhh.app

The default build is ad-hoc signed, so it runs locally but Gatekeeper warns on first launch (right-click → Open). To produce a build for distribution, pass a real signing identity:

./build-app.sh "Developer ID Application: YOUR NAME (TEAMID)"

…then notarize and staple it (requires an Apple Developer account):

xcrun notarytool submit dist/Shhh.app --keychain-profile "AC_PASSWORD" --wait
xcrun stapler staple dist/Shhh.app

Distribution: pick one

Push-to-Talk's CGEvent tap is not allowed under the App Store sandbox. That forces a choice:

Path Entitlements Push-to-Talk Notes
Direct (notarized DMG) Shhh.entitlements (hardened runtime, no sandbox) ✅ Recommended. Full feature set.
Mac App Store Shhh.MAS.entitlements (sandboxed) ❌ (Toggle only) Simpler trust story, but drop PTT.

build-app.sh uses the direct-distribution entitlements by default.

The landing page

cd landing
npm install
npm run dev            # http://localhost:3000
npm run build          # static export → landing/out/

next.config.js sets output: "export", so landing/out/ is a fully static site you can host anywhere (Vercel, Cloudflare Pages, S3, …).

Outbound URLs (download button, GitHub, support email) live in landing/lib/site.ts and are overridable with NEXT_PUBLIC_* env vars — copy landing/.env.example to landing/.env.local and fill in the real destinations before deploying.

Deploy the landing page (Vercel)

cd landing
vercel            # preview
vercel --prod     # production (after setting the env vars in the dashboard)

License

Copyright © 2026 Mark Studios LLC. All rights reserved.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages