{"id":17832013,"url":"https://github.com/bitboxer/caps2escape","last_synced_at":"2025-04-02T13:12:35.601Z","repository":{"id":66272397,"uuid":"184412033","full_name":"bitboxer/caps2escape","owner":"bitboxer","description":"fork of caps2escape for people who swapped left ctrl and left alt","archived":false,"fork":false,"pushed_at":"2019-05-01T12:23:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T17:00:44.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/bitboxer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-05-01T12:20:44.000Z","updated_at":"2019-05-01T12:23:48.000Z","dependencies_parsed_at":"2023-06-13T22:45:20.505Z","dependency_job_id":null,"html_url":"https://github.com/bitboxer/caps2escape","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitboxer%2Fcaps2escape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitboxer%2Fcaps2escape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitboxer%2Fcaps2escape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitboxer%2Fcaps2escape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitboxer","download_url":"https://codeload.github.com/bitboxer/caps2escape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819786,"owners_count":20839095,"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":[],"created_at":"2024-10-27T19:49:21.033Z","updated_at":"2025-04-02T13:12:35.573Z","avatar_url":"https://github.com/bitboxer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# caps2esc\n\nThis is a fork of [caps2escape](https://gitlab.com/interception/linux/plugins/caps2esc) that\nchanged the left ctrl and left alt keys.\n\n_Transforming the most useless key **ever** in the most useful one._\n\u003csub\u003e_For vi/Vim/NeoVim addicts at least_.\u003c/sub\u003e\n\n\u003ca href=\"http://www.catonmat.net/blog/why-vim-uses-hjkl-as-arrow-keys/\"\u003e\n    \u003cimg src=\"http://www.catonmat.net/images/why-vim-uses-hjkl/lsi-adm3a-full-keyboard.jpg\" alt=\"ADM-3A terminal\"\u003e\n\u003c/a\u003e\n\n## What is it?\n\n- **Put what's useless in its place**\n  \u003csub\u003e_By moving the CAPSLOCK function to the far ESC location_\u003c/sub\u003e\n- **Make what's useful comfortably present, just below your Pinky**\n  \u003csub\u003e_By moving both ESC and CTRL functions to the CAPSLOCK location_\u003c/sub\u003e\n\n## Why?!\n\nBecause CAPSLOCK is just \"right there\" and making it CTRL when key-chording and\nESC when pressed alone is quite handy, specially in vi.\n\n## Dependencies\n\n- [Interception Tools][interception-tools]\n\n## Building\n\n```\n$ git clone git@gitlab.com:interception/linux/plugins/caps2esc.git\n$ cd caps2esc\n$ mkdir build\n$ cd build\n$ cmake ..\n$ make\n```\n\n## Execution\n\n`caps2esc` is an [_Interception Tools_][interception-tools] plugin. A suggested\n`udevmon` job configuration is:\n\n```yaml\n- JOB: \"intercept -g $DEVNODE | caps2esc | uinput -d $DEVNODE\"\n  DEVICE:\n    EVENTS:\n      EV_KEY: [KEY_CAPSLOCK, KEY_ESC]\n\n```\n\nFor more information about the [_Interception Tools_][interception-tools], check\nthe project's website.\n\n## Installation\n\n- Arch Linux : \u003chttps://aur.archlinux.org/packages/interception-caps2esc\u003e\n- Debian: \u003chttps://askubuntu.com/questions/979359/how-do-i-install-caps2esc\u003e\n\n## Caveats\n\nAs always, there's always a caveat:\n\n- `intercept -g` will \"grab\" the detected devices for exclusive access.\n- If you tweak your key repeat settings, check whether they get reset.\n  Please check [this report][key-repeat-fix] about the resolution.\n\n## History\n\nI can't recall when I started using CAPSLOCK as both ESC and CTRL but it has\nbeen quite some time already. It started when I was on OS X where it was quite\neasy to achieve using the [Karabiner][], which already provides an option to\nturn CTRL into CTRL/ESC (which can be coupled with OS X system settings that\nturn CAPSLOCK into CTRL).\n\nMoving on, permanently making Linux my home, I searched and tweaked a similar\nsolution based on [xmodmap][] and [xcape][]:\n\n- \u003chttps://github.com/alexandre/caps2esc\u003e\n\nIt's a simple solution but with many annoying drawbacks I couldn't stand in the\nend:\n\n- It resets any time a device change happens (bluetooth, usb, any) or the\n  laptop lid is closed or when logging off and needs to be re-executed.\n- It depends on [X][]. Doesn't work on TTY (bare terminal based machine,\n  CTRL-ALT F2, etc).\n\nMeanwhile on Windows land, I had a definitive solution based on my\n[Interception library][interception] that always works perfectly, no hiccups.\n\nIt made me envy enough, so I ported the\n[Windows Interception caps2esc][caps2esc-windows] sample to Linux based upon\nthe [_Interception Tools_][interception-tools].\n\n## License\n\n\u003ca href=\"https://gitlab.com/interception/linux/plugins/caps2esc/blob/master/LICENSE.md\"\u003e\n    \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/License_icon-mit-2.svg/120px-License_icon-mit-2.svg.png\" alt=\"MIT\"\u003e\n\u003c/a\u003e\n\nCopyright © 2017 Francisco Lopes da Silva\n\n[caps2esc-windows]: https://github.com/oblitum/Interception/blob/master/samples/caps2esc/caps2esc.cpp\n[karabiner]: https://pqrs.org/osx/karabiner/\n[xmodmap]: https://www.x.org/releases/X11R7.7/doc/man/man1/xmodmap.1.xhtml\n[xcape]: https://github.com/alols/xcape\n[x]: https://www.x.org\n[interception]: https://github.com/oblitum/Interception\n[interception-tools]: https://gitlab.com/interception/linux/tools\n[key-repeat-fix]: https://github.com/oblitum/caps2esc/issues/1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitboxer%2Fcaps2escape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitboxer%2Fcaps2escape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitboxer%2Fcaps2escape/lists"}