{"id":13619537,"url":"https://github.com/jarusll/keydogger","last_synced_at":"2026-01-16T03:51:59.958Z","repository":{"id":236830580,"uuid":"770388263","full_name":"jarusll/keydogger","owner":"jarusll","description":"Keydogger is a tiny text expander written in C","archived":false,"fork":false,"pushed_at":"2025-01-12T12:22:20.000Z","size":680,"stargazers_count":120,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-12T13:29:09.097Z","etag":null,"topics":["linux","macro","wayland"],"latest_commit_sha":null,"homepage":"","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/jarusll.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-03-11T13:19:40.000Z","updated_at":"2025-01-12T12:22:23.000Z","dependencies_parsed_at":"2024-06-08T10:36:53.919Z","dependency_job_id":"98aa1dd3-a71d-4886-92bc-fcc0710e3bf0","html_url":"https://github.com/jarusll/keydogger","commit_stats":null,"previous_names":["jarusll/the-expanse","jarusll/keydogger"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarusll%2Fkeydogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarusll%2Fkeydogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarusll%2Fkeydogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jarusll%2Fkeydogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jarusll","download_url":"https://codeload.github.com/jarusll/keydogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248916687,"owners_count":21182848,"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":["linux","macro","wayland"],"created_at":"2024-08-01T21:00:44.271Z","updated_at":"2026-01-16T03:51:59.933Z","avatar_url":"https://github.com/jarusll.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Keydogger\n*Keylogger but funnier*\n\n![Demo](./demo.gif)\n\n\u003e Keydogger is a tiny text expander written in C\n\n\u003e [!WARNING]\n\u003e This is a privileged application. Hence it NEEDS sudo privileges. I have tried to keep the codebase small to reduce the footprint\n\n## Prerequisites\n- `wl-clipboard`\n- `gcc`\n- `make`\n\n```bash\ngit clone https://github.com/jarusll/keydogger.git\ncd keydogger\n```\n\n## Configuration\n\nSet the environment `KEYDOGGER_KEYBOARD` as the path to your keyboard device.\nIt should be of the pattern `/dev/input/eventX`. X will be different for your system. You can use `evtest` to find out your keyboard device path.\n\n## Installation\n\nTo install, run the following as sudo\n```bash\nmake clean install\n```\n\n## Testing\nYou can test out sample expansions from the local `keydoggerrc` file by\n```bash\nmake clean build\nsudo ./keydogger debug\n```\n\n## Usage\n\n### Configuring expansions\nSet trigger and expansion values in `~/keydoggerrc`. Expansion definitions follow the format `trigger=expansion`.\n\nHere are some sample expansions you might like\n```\n@hello=Hello, World!\n@program=Keydogger\n:love:=❤️\n@gg=Good game folks, see you tomorrow\n@@=jarusll@the-mail.net\n:ai=explain in short and simple terms\n@install=sudo package-manager install -y\n@update=sudo package-manager update -y\n@restart=sudo keydogger stop \u0026\u0026 sudo keydogger start\n@backup=rsync -avz ~/important_files/ jarusll@homeserver:backups/\n```\n\n### Commands\n```bash\n# -E flag to preseve env variables if you've already set KEYDOGGER_KEYBOARD\nsudo -E keydogger start\n# Here's another way to pass env variables\nsudo env KEYDOGGER_KEYBOARD=/dev/input/event\u003cN\u003e keydogger status\n\nsudo keydogger status\n\nsudo keydogger stop\n\n# Restart if you want to switch keyboards or reload expansions\nsudo -E keydogger restart\n```\n\n## TODO\n### v1\n- [x] Daemonize it\n- [x] Use `/dev/uinput` to emit events\n- [x] Read trigger \u0026 expansions from `.keydoggerrc`\n### v2\n- [x] Unicode support\n### v2.1\n- [x] feat: Keyboard path as environment Variable `KEYDOGGER_KEYBOARD`\n### v2.2\n- [x] fix: Send keyup for all trigger keys to fix keypresses for characters common in trigger \u0026 expansion\n\n### v3\n- [ ] Throttle writes with Async IO\n- [ ] Ability to do ascii only\n- [ ] Keychords for actions ie enable/disable, reload\n\n## Acknowledgements\n- [emisilve86](https://github.com/emisilve86/Keylogger-Daemon-Linux) for their code\n- [Espanso](https://github.com/federico-terzi/espanso) for the `1000` microseconds of delay between events\n- [ydotool](https://github.com/ReimuNotMoe/ydotool) for direct mapping of `character code` to `Linux key code`\n\n## Contributing\nPatches are preffered over PR because this is a mirror of my personal git server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarusll%2Fkeydogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarusll%2Fkeydogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarusll%2Fkeydogger/lists"}