[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6907":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},6907,"LidAngleSensor","samhenrigold\u002FLidAngleSensor","samhenrigold","tfw when you when your lid when uhh angle your lid sensor","https:\u002F\u002Fsamhenri.gold",null,"Swift",4117,174,16,20,0,3,5,26,9,28.73,"Apache License 2.0",false,"main",[],"2026-06-12 02:01:31","# Lid Angle Sensor\n\nHi, 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:\u002F\u002Fyoutu.be\u002FwqnHtGgVAUE?t=21)\n\nThis 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.\n\n## FAQ\n\n**What is a lid angle sensor?**\n\nDespite what the name would have you believe, it is a sensor that detects the angle of the lid.\n\n**Which devices have a lid angle sensor?**\n\nIt was introduced with the 2019 16-inch MacBook Pro. If your laptop is newer, you probably have it. [People have reported](https:\u002F\u002Fgithub.com\u002Fsamhenrigold\u002FLidAngleSensor\u002Fissues\u002F13) that it **does not work on M1\u002FM2 devices**, I have not yet figured out a fix.\n\n**My laptop should have it, why doesn't it show up?**\n\nI'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:\u002F\u002Fgist.github.com\u002Fsamhenrigold\u002F42b5a92d1ee8aaf2b840be34bff28591) and report the output in [an issue](https:\u002F\u002Fgithub.com\u002Fsamhenrigold\u002FLidAngleSensor\u002Fissues\u002Fnew\u002Fchoose).\n\nKnown problematic models:\n\n- M1 MacBook Air (the wedge-shaped one)\n- M1\u002FM2 MacBook Pro with Touch Bar\n\n**Can I use this on my iMac?**\n\n~~Not yet tested. Feel free to slam your computer into your desk and make a PR with your results.~~\n\n[It totally works](https:\u002F\u002Fgithub.com\u002Fsamhenrigold\u002FLidAngleSensor\u002Fissues\u002F33). If it doesn't work for you, try slamming your computer harder?\n\n**Why?**\n\n~~A lot of free time. I'm open to full-time work in NYC or remote. I'm a designer\u002Fdesign-engineer.~~ https:\u002F\u002Fsamhenri.gold\n\nI am now employed but I'm still doing this for the love of the game.\n\n**No I mean like why does my laptop need to know the exact angle of its lid?**\n\nOh. I don't know.\n\n**Can I contribute?**\n\nI guess.\n\n**How come the audio feels kind of...weird?**\n\nI'm bad at audio.\n\n**Where did the sound effect come from?**\n\nLEGO Batman 3: Beyond Gotham. But you knew that already.\n\n**Can I turn off the sound?**\n\nYes, never click \"Start Audio\". But this energy isn't encouraged.\n\n## Building\n\nAccording to [this issue](https:\u002F\u002Fgithub.com\u002Fsamhenrigold\u002FLidAngleSensor\u002Fissues\u002F12), building requires having Xcode installed. I've only tested this on Xcode 26. YMMV.\n\n## Installation\n\nVia Homebrew:\n\n```shell\nbrew install lidanglesensor\n```\n\n## Related projects\n\n- [Python library that taps into this sensor](https:\u002F\u002Fgithub.com\u002Ftcsenpai\u002Fpybooklid)\n","LidAngleSensor 是一个用于 MacBook 的小工具，可以显示笔记本盖子的角度，并在缓慢调整角度时播放木门吱吱声。该项目使用 Swift 语言开发，主要功能包括实时监测和显示笔记本盖子的角度，以及可选的音频反馈。适合对硬件传感器感兴趣的用户或需要监控笔记本开合角度的场景使用。需要注意的是，此工具不支持 M1 和 M2 设备。项目开源并遵循 Apache License 2.0 许可证，可以通过 Homebrew 安装。",2,"2026-06-11 03:09:28","top_language"]