Repository navigation
Add silent-mode extension - #22732
Conversation
commented
Nov 7, 2025
|
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. |
left a comment
There was a problem hiding this comment.
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
- Removed unused import - Switched to showFailureToast
commented
Nov 7, 2025
|
Published to the Raycast Store: |
commented
Nov 7, 2025
|
🎉 🎉 🎉 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. |
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
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder