aboutsummaryrefslogtreecommitdiffstats
path: root/assistant/Place.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-16 14:16:53 +0200
committerDanilo M. <danix@danix.xyz>2026-10-16 14:16:53 +0200
commit733bd12051ad4a9cf7bae6d503ffe625de03ee93 (patch)
treeebdd5d8ba1008dffa966c79092ea8ff5c55d042d /assistant/Place.js
parentf99a9329caccdd14d9c530777a5e5b622d34f602 (diff)
downloadquickshell-733bd12051ad4a9cf7bae6d503ffe625de03ee93.tar.gz
quickshell-733bd12051ad4a9cf7bae6d503ffe625de03ee93.zip
chore(assistant): retire the voice overlay
desktop-assistant is a text daemon now (its voice version is the tag voice-v1), and the canvas in desktop/assistant/ is its front end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'assistant/Place.js')
-rw-r--r--assistant/Place.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/assistant/Place.js b/assistant/Place.js
deleted file mode 100644
index f6d895c..0000000
--- a/assistant/Place.js
+++ /dev/null
@@ -1,23 +0,0 @@
-.pragma library
-// 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.
-
-// Top-left corner of a size x size square on a W x H screen, margin away
-// from the edges its position names. Anything unknown is the centre.
-function at(position, W, H, size, margin) {
- const x = position.endsWith("left") ? margin
- : position.endsWith("right") ? W - size - margin
- : (W - size) / 2;
- const y = position.startsWith("top") ? margin
- : position.startsWith("bottom") ? H - size - margin
- : (H - size) / 2;
- return { x, y };
-}