mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
@@ -869,7 +869,7 @@ Item {
|
|||||||
|
|
||||||
readonly property var tooltipTexts: ({
|
readonly property var tooltipTexts: ({
|
||||||
"dms": I18n.tr("DMS shell actions (launcher, clipboard, etc.)"),
|
"dms": I18n.tr("DMS shell actions (launcher, clipboard, etc.)"),
|
||||||
"compositor": I18n.tr("Niri compositor actions (focus, move, etc.)"),
|
"compositor": I18n.tr("Compositor actions (focus, move, etc.)", "keybind action type tooltip"),
|
||||||
"spawn": I18n.tr("Run a program (e.g., firefox, kitty)"),
|
"spawn": I18n.tr("Run a program (e.g., firefox, kitty)"),
|
||||||
"shell": I18n.tr("Run a shell command (e.g., notify-send)")
|
"shell": I18n.tr("Run a shell command (e.g., notify-send)")
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -388,6 +388,8 @@ Singleton {
|
|||||||
const binds = bindsData[cat];
|
const binds = bindsData[cat];
|
||||||
for (var i = 0; i < binds.length; i++) {
|
for (var i = 0; i < binds.length; i++) {
|
||||||
const bind = binds[i];
|
const bind = binds[i];
|
||||||
|
if (currentProvider === "hyprland" && bind.action && bind.action.startsWith("exec "))
|
||||||
|
bind.action = "spawn " + bind.action.slice(5);
|
||||||
const targetCat = Actions.isDmsAction(bind.action) ? "DMS" : cat;
|
const targetCat = Actions.isDmsAction(bind.action) ? "DMS" : cat;
|
||||||
if (!processed[targetCat])
|
if (!processed[targetCat])
|
||||||
processed[targetCat] = [];
|
processed[targetCat] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user