diff options
Diffstat (limited to 'desktop/shell.qml')
| -rw-r--r-- | desktop/shell.qml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/shell.qml b/desktop/shell.qml index c559385..eac0ddd 100644 --- a/desktop/shell.qml +++ b/desktop/shell.qml @@ -1,3 +1,4 @@ +//@ pragma UseQApplication // Copyright (C) 2026 Danilo M. <danix@danix.xyz> // // This program is free software; you can redistribute it and/or modify @@ -9,6 +10,9 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. +// UseQApplication (line 1) is for the island's tray menus: SystemTrayItem +// display() fails without it. Pragmas are read only at launch, so changing +// it needs a restart, not a hot reload. import Quickshell import Quickshell.Io import Quickshell.Wayland @@ -22,6 +26,7 @@ import "modules/network" import "modules/sound" import "modules/status" import "modules/vm" +import "island" ShellRoot { // Quickshell exits once no window is visible, and the drawer is closed @@ -47,7 +52,7 @@ ShellRoot { Drawer { id: drawer modules: [ - SoundModule {}, + SoundModule { id: soundModule }, NetworkModule {}, BluetoothModule {}, KdeConnectModule {}, @@ -59,6 +64,13 @@ ShellRoot { ] } + // The island on DP-1. It reads the sound module's service rather than + // binding PipeWire a second time. + Island { + sound: soundModule.service + drawer: drawer + } + // The waybar launcher and the deep-link keybinds all reach this: // qs -p <this dir> ipc call drawer toggle -> the grid // qs -p <this dir> ipc call drawer open mail -> the mail page |
