{"id":19658991,"url":"https://github.com/pendo324/kde-key-switcher","last_synced_at":"2026-05-16T03:03:49.418Z","repository":{"id":144845481,"uuid":"606625269","full_name":"pendo324/kde-key-switcher","owner":"pendo324","description":"Automatic key switcher that is compatible with KDE on Wayland or X11","archived":false,"fork":false,"pushed_at":"2023-02-26T03:39:21.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T01:18:01.176Z","etag":null,"topics":["kde","linux","mouse-button","mouse-buttons","razer","razer-synapse"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pendo324.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-26T03:34:18.000Z","updated_at":"2023-12-25T04:21:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff5f03f6-53ca-41d2-8add-5e314ff2920d","html_url":"https://github.com/pendo324/kde-key-switcher","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/pendo324%2Fkde-key-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pendo324%2Fkde-key-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pendo324%2Fkde-key-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pendo324%2Fkde-key-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pendo324","download_url":"https://codeload.github.com/pendo324/kde-key-switcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240967929,"owners_count":19886301,"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":["kde","linux","mouse-button","mouse-buttons","razer","razer-synapse"],"created_at":"2024-11-11T15:40:23.714Z","updated_at":"2026-05-16T03:03:44.373Z","avatar_url":"https://github.com/pendo324.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## KDE Key Switcher\n\nThis script uses [input-remapper](https://github.com/sezanzeb/input-remapper) and the [Publish Resource on Activate KWin script](https://github.com/pendo324/publish-resource-on-activate) to create an automatic key switcher that is compatible with KDE on Wayland or X11.\n\nI use this to switch mouse keys on my mouse, because there's not a first-party / good solution available on Linux.\n\n### Future work\n\n1. Make the program + profile names more configurable.\n    1. `key-switcher` is currently more of an example to be edited, rather than a 1-size-fits-all solution.\n\n### Setup\n\nThe script assumes you have all of the pre-requisites installed, and that you have setup your mouse in Input Remapper.\n\nYou should have several profiles to switch between pre-configured, before trying to use this script.\n\nIf the buttons you want to remap are not working in Input Remapper, you might want to remap them to F13+ keys. This can be useful for mice with extra mouse buttons (beyond M4/M5).\n\n### Usage\n\n1. Clone this repo: `git clone https://github.com/pendo324/kde-key-switcher.git`\n1. Run the script: `./key-switcher \u003cmouse_name\u003e`, e.g. `./key-switcher \"Razer Razer Naga Trinity\"`\n\n#### Advanced\n\n##### Configure the script to run automatically on start\n\nI usually do this using the Autostart system settings menu included with KDE. Other solutions could be a systemd unit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpendo324%2Fkde-key-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpendo324%2Fkde-key-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpendo324%2Fkde-key-switcher/lists"}