Skip to content

feat(bling): add caffeinate alias for systemd-inhibit sleep blocker#361

Open
hanthor wants to merge 2 commits into
mainfrom
fix/caffeinate-alias-350
Open

feat(bling): add caffeinate alias for systemd-inhibit sleep blocker#361
hanthor wants to merge 2 commits into
mainfrom
fix/caffeinate-alias-350

Conversation

@hanthor
Copy link
Copy Markdown
Member

@hanthor hanthor commented May 30, 2026

Closes #350

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 30, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 30, 2026

Warning

Review limit reached

@hanthor, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 59 minutes and 4 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d693744f-0629-4fcf-becb-2b6c5bf95381

📥 Commits

Reviewing files that changed from the base of the PR and between a9330df and 48bdbb0.

📒 Files selected for processing (1)
  • system_files/bluefin/etc/profile.d/caffeinate.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/caffeinate-alias-350

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot Bot added area/bling Anything to do with motd, terminal bling, charm and gum things kind/enhancement New feature, don't implement without a spec and consensus labels May 30, 2026
Copy link
Copy Markdown
Member Author

@hanthor hanthor left a comment

Choose a reason for hiding this comment

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

Reviewed. Small-scope, concrete fix. No issues found.

@castrojo
Copy link
Copy Markdown
Contributor

🤖 Copilot Test Report

Branch: fix/caffeinate-alias-350 | 7 commits behind main | Tested: 2026-05-30T04:51Z

Test Results

Test Result
just check (syntax validation) ✅ PASS
Branch freshness ✅ Near head

Change

Adds /etc/profile.d/caffeinate.sh with:

alias caffeinate='systemd-inhibit --what=idle --who=caffeinate --why="User requested" --mode=block'

(Note: no trailing sleep — takes arbitrary command args)

⚠️ Caffeinate Cluster Overlap

This creates the same file as #360. Exactly one of these two alias PRs should be chosen. The difference: this PR's alias takes any command as args (caffeinate sleep 60), while #360 hardcodes sleep as the wrapped command. This PR's approach is more flexible.

See #360 for the full comparison table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/bling Anything to do with motd, terminal bling, charm and gum things kind/enhancement New feature, don't implement without a spec and consensus size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alias caffeinate

2 participants