{"id":50901529,"url":"https://github.com/thor/ledctl","last_synced_at":"2026-06-16T03:04:23.977Z","repository":{"id":357685110,"uuid":"1238026772","full_name":"thor/ledctl","owner":"thor","description":"Easily toggle Num Lock, Caps Lock, and Scroll Lock, several times, graphically or from the CLI on macOS","archived":false,"fork":false,"pushed_at":"2026-05-13T21:25:35.000Z","size":210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-13T22:29:15.400Z","etag":null,"topics":["cli","gui","macos"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/thor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2026-05-13T18:36:22.000Z","updated_at":"2026-05-13T21:25:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thor/ledctl","commit_stats":null,"previous_names":["thor/ledctl"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/thor/ledctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thor%2Fledctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thor%2Fledctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thor%2Fledctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thor%2Fledctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thor","download_url":"https://codeload.github.com/thor/ledctl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thor%2Fledctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34388675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["cli","gui","macos"],"created_at":"2026-06-16T03:04:23.338Z","updated_at":"2026-06-16T03:04:23.973Z","avatar_url":"https://github.com/thor.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ledctl\n\nControl keyboard indicator LEDs (Caps Lock, Num Lock, Scroll Lock) on macOS.\n\n## Background\n\nSome hardware uses keyboard LED state as a signaling channel. Certain programmable keyboards, stream decks, and other input peripherals watch for Num Lock, Scroll Lock, or Caps Lock changes to trigger behaviour — essentially treating the LED as a software-controlled output pin. macOS provides no built-in way to drive these LEDs programmatically; they're only toggled as a side effect of pressing the physical key.\n\n`ledctl` talks directly to the IOKit HID layer, letting you set LED state without a keypress. The `--count N` toggle option covers hardware that distinguishes a sequence of N toggles from a single one.\n\n## Install\n\nDownload the universal binary from the [latest release](https://github.com/thor/ledctl/releases/latest) and put it somewhere on your `$PATH`.\n\n## Usage\n\n```\nledctl --list\nledctl [--device \u003cname\u003e] \u003ccaps|num|scroll\u003e \u003con|off|toggle\u003e [--count \u003cn\u003e]\n```\n\nRunning without arguments opens a small GUI.\n\n```sh\n# Turn Num Lock on across all keyboards\nledctl num on\n\n# Toggle Scroll Lock 3 times on a specific keyboard\nledctl --device \"Keychron\" scroll toggle --count 3\n\n# List connected keyboards with their location IDs\nledctl --list\n```\n\n## Requirements\n\nmacOS 11.0 or later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthor%2Fledctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthor%2Fledctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthor%2Fledctl/lists"}