From 8c5c2d270fd0f3bbc276e3b1cc28fc1dfae3fa59 Mon Sep 17 00:00:00 2001 From: coast Date: Tue, 13 Oct 2026 05:03:11 +0330 Subject: init --- quickshell/shell.qml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 quickshell/shell.qml (limited to 'quickshell/shell.qml') 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 {} + } +} -- cgit v1.3