Add Keymap Cheat Sheet: a bar cheat sheet drawn from a keymap repo
Reads keymap-drawer YAML (or a ZMK .keymap / QMK keymap.json) from a git repo, default xnmrph/corne. Watches it with git ls-remote and redraws when the keymap changes; waits for the repo's CI redraw after a .keymap push. Overview puts four layers in the key corners; each layer also has its own tab; combos and conditional layers are listed underneath. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1f2dc91559
commit
9efb66fe5e
8 files changed
+1971
No files matched your search
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "mx-keymap",
|
||||
"name": "Keymap Cheat Sheet",
|
||||
"version": "0.1.0",
|
||||
"author": "mx",
|
||||
"license": "MIT",
|
||||
"description": "A cheat sheet for your keyboard's layers, drawn from the keymap in a git repository (keymap-drawer YAML, ZMK .keymap or QMK keymap.json). It watches the repo and redraws the sheet when you push a change.",
|
||||
"kinds": [
|
||||
"bar-widget",
|
||||
"service"
|
||||
],
|
||||
"entryPoints": {
|
||||
"barWidget": "BarWidget.qml",
|
||||
"service": "Service.qml"
|
||||
},
|
||||
"barWidget": {
|
||||
"displayName": "Keymap",
|
||||
"description": "Click for a cheat sheet of your keyboard layers.",
|
||||
"category": "Utilities",
|
||||
"allowMultiple": false,
|
||||
"defaultSection": "right",
|
||||
"defaults": {
|
||||
"background": "pill",
|
||||
"repository": "xnmrph/corne",
|
||||
"branch": "",
|
||||
"path": "",
|
||||
"checkMinutes": 2,
|
||||
"startView": "overview"
|
||||
},
|
||||
"schema": [
|
||||
{
|
||||
"key": "background",
|
||||
"label": "Background",
|
||||
"description": "pill: the button sits on a round pill; transparent: just the icon.",
|
||||
"choices": ["pill", "transparent"],
|
||||
"defaultValue": "pill"
|
||||
},
|
||||
{
|
||||
"key": "repository",
|
||||
"type": "string",
|
||||
"label": "Keymap repository",
|
||||
"description": "GitHub owner/name (e.g. xnmrph/corne) or any git URL. Private repos use your git credentials.",
|
||||
"defaultValue": "xnmrph/corne"
|
||||
},
|
||||
{
|
||||
"key": "branch",
|
||||
"type": "string",
|
||||
"label": "Branch",
|
||||
"description": "Blank: the repository's default branch.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "path",
|
||||
"type": "string",
|
||||
"label": "Keymap file",
|
||||
"description": "Path inside the repo. Blank: found automatically (keymap-drawer YAML first, then a ZMK .keymap, then QMK keymap.json).",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "checkMinutes",
|
||||
"type": "integer",
|
||||
"label": "Check for changes every (minutes)",
|
||||
"description": "A git ls-remote, so frequent checks are cheap. The sheet also checks when you open it.",
|
||||
"defaultValue": 2
|
||||
},
|
||||
{
|
||||
"key": "startView",
|
||||
"label": "Opens on",
|
||||
"description": "Overview shows every layer on one keyboard; Base shows the first layer on its own.",
|
||||
"choices": ["overview", "base"],
|
||||
"defaultValue": "overview"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user