diff options
| author | coast <coasteen@proton.me> | 2026-10-13 05:03:11 +0330 |
|---|---|---|
| committer | coast <coasteen@proton.me> | 2026-10-13 05:03:11 +0330 |
| commit | 8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59 (patch) | |
| tree | a18e4d6016c4df3ca97e017b9f9d351398e950da /quickshell/shell.qml | |
| download | coast-newdot-8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59.tar.gz coast-newdot-8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59.tar.bz2 coast-newdot-8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59.tar.xz coast-newdot-8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59.tar.zst | |
init
Diffstat (limited to 'quickshell/shell.qml')
| -rw-r--r-- | quickshell/shell.qml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/quickshell/shell.qml b/quickshell/shell.qml new file mode 100644 index 0000000..6e9ca84 --- /dev/null +++ b/quickshell/shell.qml @@ -0,0 +1,63 @@ +//@ 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 { + id: wallLoader + active: true + component: Wallpaper {} + } + + Timer { + id: wallTimer + interval: 100 + onTriggered: wallLoader.active = true + } + + Variants { + id: barVariants + + model: Quickshell.screens.filter(s => s.name === "HDMI-A-1") + + Bar {} + } + + IpcHandler { + target: "shell" + + function restartBar(): void { + for (const b of barVariants.instances) + b.restart() + } + + function restartWall(): void { + Quickshell.reload(false) + } + } + + LazyLoader { + active: true + component: Notifications {} + } +} |
