aboutsummaryrefslogtreecommitdiffstats
path: root/shared
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 /shared
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 'shared')
-rw-r--r--shared/NotifyConfig.js2
-rw-r--r--shared/test_notify_config.js3
2 files changed, 1 insertions, 4 deletions
diff --git a/shared/NotifyConfig.js b/shared/NotifyConfig.js
index 6fc98e6..47fa0f6 100644
--- a/shared/NotifyConfig.js
+++ b/shared/NotifyConfig.js
@@ -73,8 +73,6 @@ function withheld(cfg, n, dnd) {
// Whether a queued notification's balloon is on screen at `now`: the drawer
// and snooze withhold everything, then mute and DND, then its own expiry.
-// The balloon shell and the desktop companion both ask this, so they cannot
-// disagree about what is showing.
function shown(cfg, n, dnd, drawerOpen, snoozeUntil, now) {
if (drawerOpen || snoozeUntil > now) return false;
if (withheld(cfg, n, dnd)) return false;
diff --git a/shared/test_notify_config.js b/shared/test_notify_config.js
index 4e8db23..bb44521 100644
--- a/shared/test_notify_config.js
+++ b/shared/test_notify_config.js
@@ -64,8 +64,7 @@ assert.strictEqual(C.soundFor(sc, sn("critical", "/app.oga", true)), "");
// An old daemon publishes neither field.
assert.strictEqual(C.soundFor(sc, { app: "x", urgency: "critical" }), "/c.oga");
-// On screen: the drawer, snooze, mute, DND and expiry, in one check that
-// the balloons and the desktop companion share.
+// On screen: the drawer, snooze, mute, DND and expiry, in one check.
const live = { app: "ok", urgency: "normal", expires: 0 };
assert.strictEqual(C.shown(cfg, live, false, false, 0, 5000), true);
assert.strictEqual(C.shown(cfg, live, false, true, 0, 5000), false); // drawer open