-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add doorstopper extension #17991
base: main
Are you sure you want to change the base?
Add doorstopper extension #17991
Conversation
- chore: add GitHub workflows - chore: add LICENSE - chore: initial commit
Congratulations on your new Raycast extension! 🚀 Due to our current reduced availability, the initial review may take up to 10-15 business days Once the PR is approved and merged, the extension will be available on our Store. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR adds a new Doorstopper extension that prevents MacBooks from sleeping when the lid is closed, with commands to enable/disable the functionality and monitor status through both command palette and menu bar.
- The CHANGELOG.md entry title needs to use
{PR_MERGE_DATE}
instead of hardcoded date "2025-03-19" - The
startDoorstopper
/stopDoorstopper
functions insrc/util.ts
should be wrapped in try-catch blocks since they useexecSync
with sudo privileges - The
launchCommand
calls insrc/util.ts
could be simplified usingshowFailureToast
from@raycast/utils
for error handling - The menu bar command should have a
subtitle
set to "Doorstopper" inpackage.json
to match the extension title - The
media/capture-1.png
screenshot appears to be duplicated in bothmedia/
andmetadata/
folders, should be consolidated
💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!
14 file(s) reviewed, 10 comment(s)
Edit PR Review Bot Settings | Greptile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pernielsentikaer LGTM.
The media/capture-1.png
is redundant. We could remove it later since the ray publish
has a bug on removing files.
Description
Doorstopper is a Raycast extension which prevents your MacBook from going to sleep when you close the lid.
Screencast
screencast-doorstopper.mp4
Checklist
npm run build
and tested this distribution build in Raycastassets
folder are used by the extension itselfREADME
are placed outside of themetadata
folder