diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-29 10:12:17 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-29 10:12:17 +0100 |
| commit | 0a7db3b48cce5f064c20f280e345a8bf1feb5ecb (patch) | |
| tree | eaf9c4be1a832893acf327019ef71a352d9d6647 /desktop/companion/ListFile.js | |
| parent | 28beb8a9600b6e74cab454401cc94c664d90bfe5 (diff) | |
| download | quickshell-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 'desktop/companion/ListFile.js')
| -rw-r--r-- | desktop/companion/ListFile.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/desktop/companion/ListFile.js b/desktop/companion/ListFile.js deleted file mode 100644 index d074c80..0000000 --- a/desktop/companion/ListFile.js +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2026 Danilo M. <danix@danix.xyz> -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License version 2 as -// published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -.pragma library - -// The wallpapers the companion blushes at, as a plain text file: one -// absolute path per line, blank lines and lines starting with # skipped. -// Pure, so test_mood.js drives it; Admired.qml reads and writes the file. - -function parse(text) { - const out = []; - for (const l of text.split("\n")) { - const p = l.trim(); - if (p !== "" && p[0] !== "#") out.push(p); - } - return out; -} - -// text with path's line removed if it is listed, else appended. Comments -// and every other line stay as they are. -function toggle(text, path) { - const lines = text === "" ? [] : text.replace(/\n$/, "").split("\n"); - const kept = lines.filter(l => l.trim() !== path); - if (kept.length === lines.length) kept.push(path); - return kept.length ? kept.join("\n") + "\n" : ""; -} - -// wallp.conf's OUTPUT_H and OUTPUT_V, as { connector: "H" | "V" }. An exec -// loop, because QML's engine has no String.matchAll. -function outputs(conf) { - const out = {}; - const re = /^\s*OUTPUT_([HV])\s*=\s*(\S+)/gm; - let m; - while ((m = re.exec(conf)) !== null) out[m[2]] = m[1]; - return out; -} |
