登录 注册
其他
4,253
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Swift
语言
—
创建时间
最近更新

项目能做什么

LidAngleSensor 是一个用 Swift 编写的 Mac 趣味小工具。它通过调用较新 MacBook 的开合角度传感器,实时读取并显示屏幕开合角度;还支持在极慢调整屏幕时,趣味播放木门吱嘎作响的音效(部分 M1/M2 机型暂不兼容)。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Lid Angle Sensor

Hi, I’m Sam Gold. Did you know that you have ~rights~ a lid angle sensor in your MacBook? [The ~Constitution~ human interface device utility says you do.](https://youtu.be/wqnHtGgVAUE?t=21)

This is a little utility that shows the angle from the sensor and, optionally, plays a wooden door creaking sound if you adjust it reeaaaaaal slowly.

## FAQ

**What is a lid angle sensor?**

Despite what the name would have you believe, it is a sensor that detects the angle of the lid.

**Which devices have a lid angle sensor?**

It was introduced with the 2019 16-inch MacBook Pro. If your laptop is newer, you probably have it. [People have reported](https://github.com/samhenrigold/LidAngleSensor/issues/13) that it **does not work on M1/M2 devices**, I have not yet figured out a fix.

**My laptop should have it, why doesn't it show up?**

I've only tested this on my M4 MacBook Pro and have hard-coded it to look for a specific sensor. If that doesn't work, try running [this script](https://gist.github.com/samhenrigold/42b5a92d1ee8aaf2b840be34bff28591) and report the output in [an issue](https://github.com/samhenrigold/LidAngleSensor/issues/new/choose).

Known problematic models:

- M1 MacBook Air (the wedge-shaped one)
- M1/M2 MacBook Pro with Touch Bar

**Can I use this on my iMac?**

~~Not yet tested. Feel free to slam your computer into your desk and make a PR with your results.~~

[It totally works](https://github.com/samhenrigold/LidAngleSensor/issues/33). If it doesn't work for you, try slamming your computer harder?

**Why?**

~~A lot of free time. I'm open to full-time work in NYC or remote. I'm a designer/design-engineer.~~ https://samhenri.gold

I am now employed but I'm still doing this for the love of the game.

**No I mean like why does my laptop need to know the exact angle of its lid?**

Oh. I don't know.

**Can I contribute?**

I guess.

**How come the audio feels kind of...weird?**

I'm bad at audio.

**Where did the sound effect come from?**

LEGO Batman 3: Beyond Gotham. But you knew that already.

**Can I turn off the sound?**

Yes, never click "Start Audio". But this energy isn't encouraged.

## Building

According to [this issue](https://github.com/samhenrigold/LidAngleSensor/issues/12), building requires having Xcode installed. I've only tested this on Xcode 26. YMMV.

## Installation

Via Homebrew:

```shell
brew install lidanglesensor
```

## Related projects

- [Python library that taps into this sensor](https://github.com/tcsenpai/pybooklid)
阅读完整原文

项目深度分析 AI 生成

MacBook 物理防窥与防盗应急安全助手

产品构想利用开合角度变化作为安全信号,当检测到微小合盖动作(如有人靠近快速微压屏幕)或特定角度时,自动触发隐藏敏感窗口、模糊屏幕或锁屏操作。
核心功能角度阈值监听、触发式即时锁屏/隐藏桌面、休眠前快速销毁敏感剪贴板、外接显示器防拔出防盗警报(推测)。
目标用户在咖啡厅/共享工位办公的远程工作者、注重隐私安全的商务人士(推测)。
难度/周期中等 · 2-3周 · 成本:极低(主要是 Apple Developer 开发者账号年费 99 美元)
收费模式Mac App Store 或 Gumroad 一次性买断制(2.99 - 4.99 美元)。
竞争风险M1/M2 等部分机型传感器读取失败(已验证事实);纯私有 IOKit/HID 接口可能受限于 Mac App Store 审核,需走独立分发(推测)。
依据 AI推测

macOS 物理交互音效与解压玩具应用

产品构想将项目原本的恶搞音效商业化为精致的桌面解压工具,提供丰富的声音套件(开门声、科幻舱门、折叠书本、机械轴等),根据开盖角速度实时合成物理音效。
核心功能基于角速度的声音平滑调节、多种高质量音效包切换、开合动画模拟可视化、低资源后台常驻。
目标用户喜欢个性化定制 macOS 的极客、软硬件体验爱好者、数码博主(推测)。
难度/周期低 · 1-2周 · 成本:音效授权采购成本或自制录音成本,约 50-200 美元(推测)。
收费模式免费基础款 + 内购高级音效包(1.99 - 3.99 美元)或直接开源提供赞助通道。
竞争风险可替代性高、新鲜感过后留存率低(推测)。
依据 已验证事实

Mac 角度触发型自动化工作流工具

产品构想将屏幕角度转化为快捷指令(Shortcuts)或触发器(类似于 BetterTouchTool 的输入源),例如半合盖时自动静音/暂停视频,合到接近 30 度时切换勿扰模式。
核心功能多档位角度阈值事件派发、Raycast/Alfred/Shortcuts 插件集成、CLI 角度输出接口、屏幕开合姿态控制智能家居联动(推测)。
目标用户效率工具控、macOS 自动化深度玩家、工作流折腾者(推测)。
难度/周期中等 · 3-4周 · 成本:开发与维护时间成本
收费模式付费买断(约 4.99 - 9.99 美元)或作为 Raycast Pro 类插件/增值配件盈利。
竞争风险硬件兼容性碎片化严重(部分 M1/M2 机型不支持,已验证事实);系统更新可能封禁私有传感器接口(推测)。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
kushbaby05/LidAngleSensor 中文介绍暂未生成
🖥️ Display the lid angle of your MacBook and enjoy an option
1 Objective-C
GustavSchroeter/LidAngleSensor 中文介绍暂未生成
0 Swift
MRsoyabean/LidAngleSensor-Conan 中文介绍暂未生成
Lid Angle Sensor + Detective Conan door sounds. Original app
0 Swift
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 5 个 Release
社区活跃Star 4,253 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。