{"id":21829417,"url":"https://github.com/paulchiu/xinput-toggle","last_synced_at":"2026-04-18T11:03:30.947Z","repository":{"id":70212293,"uuid":"102157472","full_name":"paulchiu/xinput-toggle","owner":"paulchiu","description":"xinput-toggle is a simple command for toggling the enabled/disabled state of a given device id","archived":false,"fork":false,"pushed_at":"2017-09-21T08:18:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T12:42:08.167Z","etag":null,"topics":["linux","thinkpad","xinput"],"latest_commit_sha":null,"homepage":"","language":"Go","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/paulchiu.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":"2017-09-01T22:26:54.000Z","updated_at":"2017-09-21T08:19:29.000Z","dependencies_parsed_at":"2023-03-07T15:30:16.712Z","dependency_job_id":null,"html_url":"https://github.com/paulchiu/xinput-toggle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/paulchiu/xinput-toggle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulchiu%2Fxinput-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulchiu%2Fxinput-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulchiu%2Fxinput-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulchiu%2Fxinput-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulchiu","download_url":"https://codeload.github.com/paulchiu/xinput-toggle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulchiu%2Fxinput-toggle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268031428,"owners_count":24184464,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["linux","thinkpad","xinput"],"created_at":"2024-11-27T18:27:15.047Z","updated_at":"2026-04-18T11:03:30.912Z","avatar_url":"https://github.com/paulchiu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xinput-toggle\n\n`xinput-toggle` is a simple command for toggling the enabled/disabled state\nof a given device id. For list of devices, run `xinput`\n\n# Usage\n\n`xinput-toggle [device-id]`\n\n# Example\n\nThis simple application was written to allow easy toggling of the touchpad on my\nThinkPad.\n\nTo get the device id, type `xinput`, you should see output such as:\n\n```\n$ xinput\n⎡ Virtual core pointer                          id=2    [master pointer  (3)]\n⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]\n⎜   ↳ TPPS/2 IBM TrackPoint                     id=12   [slave  pointer  (2)]\n⎜   ↳ MX Master                                 id=16   [slave  pointer  (2)]\n⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]\n⎣ Virtual core keyboard                         id=3    [master keyboard (2)]\n    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]\n    ↳ Power Button                              id=6    [slave  keyboard (3)]\n```\n\nGiven the above output, to toggle the touchpad, execute `xinput-toggle 11`, you\nshould see output:\n\n```\n$ xinput-toggle 11\nDevice id 11 disabled\n```\n\nTo toggle the device again, run the same command and you should see:\n\n```\n$ xinput-toggle 11\nDevice id 11 enabled\n```\n\nThe command can then be bound to a shortcut key or media key for quick access.\n\n# Installation\n\nInstall the binary. See [releases][rels]. Please note that `xinput` needs to be\ninstalled for the command to work.\n\n[rels]: https://github.com/paulchiu/xinput-toggle/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulchiu%2Fxinput-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulchiu%2Fxinput-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulchiu%2Fxinput-toggle/lists"}