aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/shell.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/shell.qml')
-rw-r--r--desktop/shell.qml20
1 files changed, 16 insertions, 4 deletions
diff --git a/desktop/shell.qml b/desktop/shell.qml
index 8579709..35dbe3f 100644
--- a/desktop/shell.qml
+++ b/desktop/shell.qml
@@ -25,6 +25,7 @@ import "modules/qtmaildir"
import "modules/sbbuilder"
import "modules/bluetooth"
import "modules/clipboard"
+import "modules/companion"
import "modules/git"
import "modules/kdeconnect"
import "modules/mail"
@@ -40,6 +41,7 @@ import "modules/user"
import "modules/vm"
import "island"
import "assistant"
+import "companion"
ShellRoot {
// Quickshell exits once no window is visible, and the drawer is closed
@@ -85,6 +87,9 @@ ShellRoot {
IconsModule {},
SunsetModule {},
IdleModule {},
+ CompanionModule {},
+ PhrasesModule {},
+ ArtistsModule {},
NotificationsModule {},
AutostartModule {},
ObsScenesModule {},
@@ -123,13 +128,20 @@ ShellRoot {
// The assistant canvas on SUPER+Home, a view over desktop-assistant's
// socket. See assistant/README.md.
- Assistant { id: assistant; swapping: asstSettings.loading; hears: asstSettings.hears }
+ Assistant { id: assistant; swapping: asstSettings.loading; hears: asstSettings.hears
+ preferred: Prefs.assistantModel }
- // Opening the assistant loads its preferred model if another one is in
- // VRAM. See modules/assistant/README.md.
+ // The desktop companion, bottom-right of the focused monitor, on SUPER+\.
+ // She reads the assistant's state. See companion/README.md.
+ Companion { asst: assistant }
+
+ // Opening the assistant, or picking another model for its chat, loads
+ // that model if it is a local one and another is in VRAM. See
+ // modules/assistant/README.md.
Connections {
target: assistant
- function onOpenChanged() { if (assistant.open) asstSettings.ensurePreferred(); }
+ function onOpenChanged() { if (assistant.open) asstSettings.ensureModel(assistant.wanted); }
+ function onWantedChanged() { if (assistant.open) asstSettings.ensureModel(assistant.wanted); }
}
// The waybar launcher and the deep-link keybinds all reach this: