aboutsummaryrefslogtreecommitdiffstats
path: root/keybinds
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-29 10:12:17 +0100
committerDanilo M. <danix@danix.xyz>2026-10-29 10:12:17 +0100
commit0a7db3b48cce5f064c20f280e345a8bf1feb5ecb (patch)
treeeaf9c4be1a832893acf327019ef71a352d9d6647 /keybinds
parent28beb8a9600b6e74cab454401cc94c664d90bfe5 (diff)
downloadquickshell-0a7db3b48cce5f064c20f280e345a8bf1feb5ecb.tar.gz
quickshell-0a7db3b48cce5f064c20f280e345a8bf1feb5ecb.zip
companion: remove from the tree, archived as tag archive/companion
The chibi 2B companion is retired for now. Its last state is kept in the signed tag archive/companion (the commit before this one), so it can be revisited with `git checkout archive/companion`; hypr-theme carries a tag of the same name for its compositor hooks (typing/delete events and the SUPER+\ bind). Removed with it, since nothing else used them: the Companion, phrases and artists settings pages, the five companion prefs in Prefs.qml and Prefs.ready, the wallpaper heart (Admired.qml's list), the assistant's replied() signal and cardTop, and the keybinds reminder's name for the code:49 bind. The design specs and plans under docs/ stay as history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'keybinds')
-rw-r--r--keybinds/Binds.js9
-rw-r--r--keybinds/test_binds.js2
2 files changed, 1 insertions, 10 deletions
diff --git a/keybinds/Binds.js b/keybinds/Binds.js
index 604a53d..eb337c1 100644
--- a/keybinds/Binds.js
+++ b/keybinds/Binds.js
@@ -42,15 +42,8 @@ const NAMES = Object.assign(Object.create(null), {
"XF86Search": "Fn+F11",
});
-// Hyprland 0.56.2 reports a Lua `code:N` bind with key "" and keycode 0, so
-// such a bind is named here by its description.
-// ponytail: one entry per keycode bind; a new `code:` bind needs a line here.
-const UNNAMED = Object.assign(Object.create(null), {
- "Desktop: Companion": "\\", // code:49, left of 1
-});
-
function keys(bind) {
- const k = bind.key || UNNAMED[bind.description] || "?";
+ const k = bind.key || "?"; // a `code:N` bind reports key "" (see AGENTS.md)
return mods(bind.modmask).concat([NAMES[k] ?? k]).join(" + ");
}
diff --git a/keybinds/test_binds.js b/keybinds/test_binds.js
index 7b2289a..df1e4b5 100644
--- a/keybinds/test_binds.js
+++ b/keybinds/test_binds.js
@@ -27,8 +27,6 @@ assert.strictEqual(B.keys({ modmask: 69, key: "F1" }), "Win + CTRL + SHIFT + F1"
assert.strictEqual(B.keys({ modmask: 0, key: "XF86AudioMute" }), "Mute");
assert.strictEqual(B.keys({ modmask: 64, key: "mouse:272" }), "Win + LMB");
assert.strictEqual(B.keys({ modmask: 0, key: "F5" }), "F5");
-// A keycode bind reports no key at all; it is named by its description.
-assert.strictEqual(B.keys({ modmask: 64, key: "", keycode: 0, description: "Desktop: Companion" }), "Win + \\");
// A key named like an Object.prototype member is not renamed.
assert.strictEqual(B.keys({ modmask: 0, key: "constructor" }), "constructor");