Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add doorstopper extension #17991

wants to merge 3 commits into from

Conversation

roele
Copy link

@roele roele commented Mar 19, 2025

Description

Doorstopper is a Raycast extension which prevents your MacBook from going to sleep when you close the lid.

Screencast

screencast-doorstopper.mp4

Checklist

- chore: add GitHub workflows
- chore: add LICENSE
- chore: initial commit
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Mar 19, 2025
@raycastbot
Copy link
Collaborator

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.

@roele roele marked this pull request as ready for review March 20, 2025 00:24
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 in src/util.ts should be wrapped in try-catch blocks since they use execSync with sudo privileges
  • The launchCommand calls in src/util.ts could be simplified using showFailureToast from @raycast/utils for error handling
  • The menu bar command should have a subtitle set to "Doorstopper" in package.json to match the extension title
  • The media/capture-1.png screenshot appears to be duplicated in both media/ and metadata/ 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

Copy link
Contributor

@LitoMore LitoMore left a 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.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants