113 lines
3.3 KiB
JSON
113 lines
3.3 KiB
JSON
{
|
|
"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",
|
|
"keySize": 66,
|
|
"showCombos": true,
|
|
"showHints": true
|
|
},
|
|
"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",
|
|
"description": "A git ls-remote, so frequent checks are cheap. The sheet also checks when you open it.",
|
|
"defaultValue": 2,
|
|
"min": 1,
|
|
"max": 60,
|
|
"unit": "min"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"key": "keySize",
|
|
"type": "integer",
|
|
"label": "Key size",
|
|
"description": "Size of one key on the sheet. It shrinks by itself when the screen is too narrow.",
|
|
"min": 44,
|
|
"max": 96,
|
|
"unit": "px",
|
|
"defaultValue": 66
|
|
},
|
|
{
|
|
"key": "showCombos",
|
|
"type": "boolean",
|
|
"label": "Show combos",
|
|
"description": "List the combos (and layers you reach by holding two) under the keyboard.",
|
|
"defaultValue": true
|
|
},
|
|
{
|
|
"key": "showHints",
|
|
"type": "boolean",
|
|
"label": "Show keyboard hints",
|
|
"description": "The line at the bottom with the keys that switch layers.",
|
|
"defaultValue": true
|
|
}
|
|
]
|
|
}
|
|
}
|