1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

keyboard shortcuts: comprehensive keyboard shortcut management interface

- niri only for now
- requires quickshell-git, hidden otherwise
- Add, Edit, Delete keybinds
- Large suite of pre-defined and custom actions
- Works with niri 25.11+ include feature
This commit is contained in:
bbedward
2025-12-02 23:08:23 -05:00
parent a679be68b1
commit f92dc6f71b
17 changed files with 4105 additions and 863 deletions

View File

@@ -97,14 +97,12 @@ DankModal {
const bind = binds[i];
if (bind.subcat) {
hasSubcats = true;
if (!subcats[bind.subcat]) {
if (!subcats[bind.subcat])
subcats[bind.subcat] = [];
}
subcats[bind.subcat].push(bind);
} else {
if (!subcats["_root"]) {
if (!subcats["_root"])
subcats["_root"] = [];
}
subcats["_root"].push(bind);
}
}
@@ -121,12 +119,10 @@ DankModal {
function distributeCategories(cols) {
const columns = [];
for (let i = 0; i < cols; i++) {
for (let i = 0; i < cols; i++)
columns.push([]);
}
for (let i = 0; i < categoryKeys.length; i++) {
for (let i = 0; i < categoryKeys.length; i++)
columns[i % cols].push(categoryKeys[i]);
}
return columns;
}