blob: bda5dbb7f01b823d5569b8e108dd6f6b4baa9b5c (
plain)
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
|
//@ pragma UseQApplication
import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import Niri
import "./modules/bar/"
import "./modules/desktop/"
import "./modules/notifications/"
ShellRoot {
id: root
Niri {
id: niri
Component.onCompleted: connect()
onConnected: console.info("Connected to niri")
onErrorOccurred: function(error) {
console.error("Niri error:", error)
}
}
LazyLoader {
active: true
component: Wallpaper {}
}
LazyLoader {
id: barLoader
active: true
component: Bar {}
}
IpcHandler {
target: "shell"
function restartBar(): void {
if (barLoader.item)
barLoader.item.restart()
}
}
LazyLoader {
active: true
component: Notifications {}
}
}
|