-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.qml
More file actions
138 lines (119 loc) · 3.38 KB
/
Copy pathshell.qml
File metadata and controls
138 lines (119 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
//@ pragma UseQApplication
import Quickshell
import Quickshell.Io
import QtQuick 6.10
import "./Modules/bar" as BarModule
import "./Modules/power" as Power
import "./Modules/applauncher" as AppLauncher
import "./Modules/bluetooth" as Bluetooth
import "./Modules/mediaplayer" as MediaPlayer
import "./Modules/volume" as Volume
import "./Modules/notifications" as Notifications
import "./Modules/osd" as Osd
import "./Modules/wallpaper" as Wallpaper
import "./Modules/cheatsheet" as Cheatsheet
import "./Modules/shellmenu" as ShellMenu
import "./Modules/display" as DisplayModule
import "./Modules/settings" as SettingsModule
import "./Services" as Services
Scope {
Component.onCompleted: {
if (Services.Notifications && Services.Notifications.server) {
console.log("[Shell] Notification server initialized")
} else {
console.error("[Shell] Failed to initialize notification server")
}
}
BarModule.Bar {
id: bar
}
Power.PowerMenuPopup {
id: powerMenu
barPosition: bar.barPosition
}
AppLauncher.AppLauncher {
id: appLauncher
}
Osd.Wrapper {
id: osdWrapper
}
MediaPlayer.MediaPlayerPopup {
id: mediaPopup
barPosition: bar.barPosition
}
Notifications.NotificationPopups {
id: notificationPopups
}
Notifications.NotificationCenter {
id: notificationCenter
}
Wallpaper.WallpaperPreviewOverlay {
id: wallpaperPreviewOverlay
}
Wallpaper.WallpaperSelector {
id: wallpaperSelector
previewOverlay: wallpaperPreviewOverlay
}
Cheatsheet.IPCCheatsheet {
id: ipcCheatsheet
}
ShellMenu.ShellMenuPopup {
id: shellMenuPopup
cheatsheetPopup: ipcCheatsheet
wallpaperSelector: wallpaperSelector
displayManager: displayManagement
settingsWindow: settingsWin
}
DisplayModule.DisplayManagerWindow {
id: displayManagement
}
SettingsModule.SettingsWindow {
id: settingsWin
}
Process {
id: awwwDaemon
running: false
command: ["awww-daemon"]
onStarted: console.log("[Shell] awww-daemon started")
}
Process {
id: awwwKillProcess
running: false
command: ["awww", "kill"]
stdout: StdioCollector {}
stderr: StdioCollector {}
onExited: {
startTimer.restart()
}
}
Timer {
id: startTimer
interval: 100
repeat: false
running: true
onTriggered: {
awwwDaemon.running = true
}
}
Component.onDestruction: {
console.log("[Shell] Cleaning up awww-daemon")
awwwDaemon.running = false
awwwKillProcess.running = true
}
QtObject {
id: wiring
Component.onCompleted: {
if (mediaPopup) bar.mediaPopup = mediaPopup
if (notificationPopups) bar.notificationPopups = notificationPopups
if (notificationCenter) bar.notificationCenter = notificationCenter
if (shellMenuPopup) bar.shellMenuPopup = shellMenuPopup
if (powerMenu) bar.powerMenuPopup = powerMenu
}
}
Connections {
target: bar
function onVolumePopupChanged() {
if (bar.volumePopup) osdWrapper.volumePopup = bar.volumePopup
}
}
}