Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

SleepHoldService

English | 简体中文

A lightweight macOS service that prevents system sleep when the lid is closed.

System Requirements

  • macOS 12+
  • Administrator privileges for installation

Installation

Run the following command in Terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Lakr233/SleepHoldService/HEAD/net_install.sh)"

Uninstallation

To remove SleepHoldService from your system, run:

# Stop and unload the service sudo launchctl unload /Library/LaunchDaemons/launched.sleepholdservice.plist # Remove files sudo rm -f /Library/LaunchDaemons/launched.sleepholdservice.plist sudo rm -f /usr/local/sbin/SleepHoldService # Re-enable sleep mode manually sudo pmset -a disablesleep 0

Third-Party Integration

This service integrates seamlessly with Sentry. When Sentry is activated, SleepHoldService automatically prevents sleep mode.

For developers, see main.swift for network request implementation. Create a session and make extend requests as needed. Call terminate when finished or let it expire naturally.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Copyright 2025 © Lakr Aream. All rights reserved.

关于 About

A lightweight macOS service that prevents system sleep when the lid is closed.

语言 Languages

Swift59.8%
Shell21.6%
Makefile18.6%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
3
Total Commits
峰值: 1次/周
Less
More

核心贡献者 Contributors