From 5bb884db5734482398739d39414e86ed1d04a45a Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 30 Jul 2026 15:16:51 -0400 Subject: [PATCH] keybinds: fix labeling of spawn keybinds fixes #2957 --- quickshell/Modules/Settings/KeybindItem.qml | 2 +- quickshell/Services/KeybindsService.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/quickshell/Modules/Settings/KeybindItem.qml b/quickshell/Modules/Settings/KeybindItem.qml index 94147626e..cc241e4a6 100644 --- a/quickshell/Modules/Settings/KeybindItem.qml +++ b/quickshell/Modules/Settings/KeybindItem.qml @@ -869,7 +869,7 @@ Item { readonly property var tooltipTexts: ({ "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)"), "shell": I18n.tr("Run a shell command (e.g., notify-send)") }) diff --git a/quickshell/Services/KeybindsService.qml b/quickshell/Services/KeybindsService.qml index 0ea0bad74..f2bccebc0 100644 --- a/quickshell/Services/KeybindsService.qml +++ b/quickshell/Services/KeybindsService.qml @@ -388,6 +388,8 @@ Singleton { const binds = bindsData[cat]; for (var i = 0; i < binds.length; 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; if (!processed[targetCat]) processed[targetCat] = [];