{"id":18584596,"url":"https://github.com/ckath/mergeinputs","last_synced_at":"2025-04-10T12:30:39.807Z","repository":{"id":47073844,"uuid":"266643106","full_name":"Ckath/mergeinputs","owner":"Ckath","description":"extremely basic program to merge keyboard devices on linux","archived":false,"fork":false,"pushed_at":"2023-05-25T17:36:44.000Z","size":9,"stargazers_count":22,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T21:22:09.264Z","etag":null,"topics":["combine","keyboard","linux","merge","uinput"],"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/Ckath.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":"2020-05-24T23:39:36.000Z","updated_at":"2025-02-13T18:41:55.000Z","dependencies_parsed_at":"2024-11-07T00:36:04.383Z","dependency_job_id":"241574e1-adf6-4d26-8ee7-767bb85958ff","html_url":"https://github.com/Ckath/mergeinputs","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/Ckath%2Fmergeinputs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fmergeinputs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fmergeinputs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ckath%2Fmergeinputs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ckath","download_url":"https://codeload.github.com/Ckath/mergeinputs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217123,"owners_count":21066633,"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":["combine","keyboard","linux","merge","uinput"],"created_at":"2024-11-07T00:28:09.001Z","updated_at":"2025-04-10T12:30:39.211Z","avatar_url":"https://github.com/Ckath.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mergeinputs\n\nfor some reason theres some issues using multiple keyboards simultaneously in linux, for some applications. this is a very small utility to merge/combine keyboards in linux into one `merged input` device.\n\n## usage\n\n```plain\nmergeinputs inputeventpaths\nexample to merge all keyboards: mergeinputs /dev/input/by-path/*-kbd\n```\n\ndepending on your distro you might either need the `input` group or run mergeinputs as root.\n\n## but how does it work?\n\nleveraging the uinput module, mergeinputs is able to sit before any userspace input drivers:\n\n`/dev/input/eventx /dev/input/eventy -\u003e mergeinputs grabs all key events -\u003e \"merged input\" device -\u003e input drivers -\u003e userspace applications`\n\nthis means any application will only see one keyboard (`merged inputs`) pressing keys, eliminating any issues multiple devices might've caused.\n\n## install\n\n`make install`\n\n## auto-start and reload on device change\n\nTo start the utility on every boot, a sample systemd unit is provided:\n\n```plain\nsudo cp mergeinputs.service /etc/systemd/system\nsudo systemctl enable --now mergeinputs\n```\n\nIf you want to restart mergeinputs on device changes to handle hotplugging of keyboards, use the mergeinputs-restart units:\n\n```plain\nsudo cp mergeinputs-restart.* /etc/systemd/system\nsudo systemctl enable --now mergeinputs-restart.path\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckath%2Fmergeinputs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckath%2Fmergeinputs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckath%2Fmergeinputs/lists"}