{"id":31074405,"url":"https://github.com/deepakness/lidangle","last_synced_at":"2025-09-18T04:03:52.984Z","repository":{"id":314240662,"uuid":"1054715564","full_name":"deepakness/LidAngle","owner":"deepakness","description":"Shows the current angle of the MacBook screen in the menu bar","archived":false,"fork":false,"pushed_at":"2025-09-11T08:37:42.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-11T11:42:15.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepakness.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-11T08:27:37.000Z","updated_at":"2025-09-11T10:52:27.000Z","dependencies_parsed_at":"2025-09-11T11:42:16.956Z","dependency_job_id":"f3416db3-698e-4856-8e52-342358bdfd5c","html_url":"https://github.com/deepakness/LidAngle","commit_stats":null,"previous_names":["deepakness/lidangle"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/deepakness/LidAngle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakness%2FLidAngle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakness%2FLidAngle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakness%2FLidAngle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakness%2FLidAngle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepakness","download_url":"https://codeload.github.com/deepakness/LidAngle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepakness%2FLidAngle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275352577,"owners_count":25449475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-16T02:42:35.436Z","updated_at":"2025-09-16T02:42:36.439Z","avatar_url":"https://github.com/deepakness.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LidAngle (macOS Menu Bar App)\n\nA tiny menu bar app that displays your Mac’s current lid angle as text (e.g., `120°`).\n\n- Uses the hidden lid angle HID sensor via `IOHIDManager` (Vendor 0x05AC, UsagePage 0x0020, Usage 0x008A), reading Feature Report ID 1.\n- No UI beyond the status item text.\n- Right‑click (or control‑click) the status item to Quit.\n\n## Build \u0026 Run\n\n- Open the Xcode project and run the `LidAngle` target.\n- Ensure `IOKit.framework` is linked (Target → Build Phases → Link Binary With Libraries).\n- App Sandbox is disabled in `LidAngle.entitlements` to allow HID access.\n\n## Behavior\n\n- Updates the angle about twice per second.\n- Shows `—°` if the sensor isn’t available or can’t be read.\n- No left‑click action; right‑click shows a one‑item menu (Quit).\n\n## Requirements \u0026 Notes\n\n- Hardware: Newer Mac laptops/desktops with a lid angle sensor. Some M1 models reportedly don’t expose the sensor.\n- API: Relies on undocumented HID usage; not App Store–safe and may break on OS updates.\n- Matching: Falls back from strict (VID+PID+Usage) to relaxed (VID+Usage) to usage‑only.\n\n## Troubleshooting\n\n- If it always shows `—°`, check your hardware, confirm Sandbox is off, and verify `IOKit.framework` is linked. Use the Xcode console to see any read errors.\n\n## Acknowledgments\n\n- Inspired by and built thanks to the work in [LidAngleSensor](https://github.com/samhenrigold/LidAngleSensor). All credit for discovering and demonstrating how to use the hidden lid angle HID API goes to the original author.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepakness%2Flidangle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepakness%2Flidangle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepakness%2Flidangle/lists"}