Skip to content

Add silent-mode extension - #22732

Merged
raycastbot merged 4 commits into
raycast:mainfrom
planecore:ext/silent-mode
Nov 7, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
planecore:ext/silent-mode

Conversation

@planecore

@planecore planecore commented Nov 7, 2025 •

Copy link
Copy Markdown
Contributor

Description

This extension adds the missing Silent Mode option, just like on iPhone. Currently on Mac you can just mute all sounds, or turn on DND, but then you can't listen to music or don't get notifications at all.
The extensions adds simple commands and a menu bar item.

Screencast

Raycast 2025-11-07 at 14 44 39 raycast2

Checklist

@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Nov 7, 2025
@raycastbot

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@planecore
planecore marked this pull request as ready for review November 7, 2025 12:59

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Greptile Summary

This PR introduces a new "silent-mode" extension that provides iPhone-like silent mode functionality for macOS. The extension fills a gap in macOS where users can only completely mute all sounds or use Do Not Disturb mode, but cannot selectively mute alert sounds while preserving music and notifications. The implementation uses AppleScript to control the system's alert volume, setting it to 0 for silent mode and restoring it to a user-configurable level when disabled. The extension provides four commands: turn on/off/toggle silent mode and a menu bar component that shows the current state with appropriate icons (Bell/BellDisabled). The core functionality is centralized in a utils module that handles AppleScript execution, preference management, and error handling with proper user feedback through toasts and HUD messages.

Important Files Changed

Filename Score Overview
extensions/silent-mode/package.json 4/5 Defines extension metadata, 4 commands, and alert volume preference configuration
extensions/silent-mode/src/utils/alert.ts 4/5 Core utility functions for controlling macOS alert volume via AppleScript
extensions/silent-mode/src/silent-mode-menu-bar.tsx 4/5 Menu bar component that displays current state and allows toggling
extensions/silent-mode/src/toggle-silent-mode.ts 4/5 Simple command wrapper for toggling silent mode state
extensions/silent-mode/src/turn-on-silent-mode.ts 5/5 Minimal command to turn on silent mode
extensions/silent-mode/src/turn-off-silent-mode.ts 4/5 Simple command to turn off silent mode
extensions/silent-mode/README.md 4/5 Basic documentation with title and description only
extensions/silent-mode/CHANGELOG.md 4/5 Minimal changelog with proper template string format
extensions/silent-mode/.prettierrc 5/5 Standard Prettier configuration following Raycast conventions
extensions/silent-mode/tsconfig.json 5/5 TypeScript configuration following Raycast extension patterns
extensions/silent-mode/eslint.config.js 5/5 ESLint configuration using official Raycast template
extensions/silent-mode/.gitignore 5/5 Standard gitignore file for Raycast extensions

Confidence score: 4/5

  • This PR is generally safe to merge but requires attention to a few implementation details
  • Score reflects solid core functionality with proper error handling, but deducted points for preference validation issues, incomplete README documentation, and missing await in async functions
  • Pay close attention to the alert volume preference validation and async function implementations in utils/alert.ts

Context used:

  • Context from dashboard - When specifying default values in preferences, provide them in the 'default' field rather than in th... (source)

12 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Matan Mashraki and others added 2 commits November 7, 2025 15:16
- Removed unused import
- Switched to showFailureToast

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit c6c796f into raycast:main Nov 7, 2025
@github-actions

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Published to the Raycast Store:
https://raycast.com/matan/silent-mode

@raycastbot

ghost commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@planecore).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

@planecore
planecore deleted the ext/silent-mode branch November 7, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants