{"id":18228788,"url":"https://github.com/krish-r/caps2esc","last_synced_at":"2025-04-08T08:23:42.266Z","repository":{"id":260866432,"uuid":"877454363","full_name":"krish-r/caps2esc","owner":"krish-r","description":"Remap `CAPS LOCK` to `ESC` in Linux systems.","archived":false,"fork":false,"pushed_at":"2025-03-12T17:39:42.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T18:35:03.063Z","etag":null,"topics":["zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krish-r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-10-23T17:16:33.000Z","updated_at":"2025-03-12T17:39:45.000Z","dependencies_parsed_at":"2024-11-03T07:19:10.420Z","dependency_job_id":"69488a55-9806-481c-a9b6-3b485ce7a571","html_url":"https://github.com/krish-r/caps2esc","commit_stats":null,"previous_names":["krish-r/caps2esc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krish-r%2Fcaps2esc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krish-r%2Fcaps2esc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krish-r%2Fcaps2esc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krish-r%2Fcaps2esc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krish-r","download_url":"https://codeload.github.com/krish-r/caps2esc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247802186,"owners_count":20998526,"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","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":["zig"],"created_at":"2024-11-04T08:03:30.992Z","updated_at":"2025-04-08T08:23:42.237Z","avatar_url":"https://github.com/krish-r.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caps2esc\n\nRemap `CAPS LOCK` to `ESC` in Linux systems.\n\n## Overview\n\nThis is inspired by / based on [evremap][evremap] by [wez][wez].\n\nUses [`libevdev`][libevdev] to grab exclusive access to the input device, reads input events, remaps `CAPS LOCK` to `ESC` and writes them back to a virtual output device.\n\n## Example Usage\n\n### List devices\n\n```shell\nsudo zig-out/bin/caps2esc --list-devices\n```\n\n### Remap key\n\n```shell\nsudo zig-out/bin/caps2esc --device 'device-name'\n```\n\n## Building from Source\n\n### Dependencies\n\n-   `libevdev` development package (Fedora: `sudo dnf install libevdev-devel` | Debian/Ubuntu: `sudo apt install libevdev-dev`)\n-   [Zig master](https://ziglang.org/download/)\n\n```shell\nzig build -Doptimize=ReleaseSafe\n```\n\n## Adding service to `systemd`\n\n**Note**: Update the path and device name in the example service file (`caps2esc.service`) and the below command.\n\n```shell\nsudo cp ~/example-path/caps2esc/caps2esc.service /usr/lib/systemd/system/\nsudo systemctl enable caps2esc.service\nsudo systemctl start caps2esc.service\nsystemctl status caps2esc.service\n```\n\n## Credits\n\n-   [evremap][evremap] by [@wez][wez]\n-   [Performance Optimizer Observation Platform][performance-optimizer-observation-platform] by [@andrewrk][andrew-kelley].\n\n[wez]: https://github.com/wez/\n[evremap]: https://github.com/wez/evremap/\n[andrew-kelley]: https://github.com/andrewrk/\n[performance-optimizer-observation-platform]: https://github.com/andrewrk/poop/\n[libevdev]: https://www.freedesktop.org/wiki/Software/libevdev/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrish-r%2Fcaps2esc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrish-r%2Fcaps2esc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrish-r%2Fcaps2esc/lists"}