From a9fc9cf8832c471854bb7fa61137a5272f1076b6 Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 15 Oct 2025 08:39:09 -0400 Subject: niri: rearranged files and small changes --- .../gui/desktops/niri/parts/quickshell/qml/Bar.qml | 48 ++++++++++++++++++++++ .../desktops/niri/parts/quickshell/qml/shell.qml | 5 +++ 2 files changed, 53 insertions(+) create mode 100644 home-manager/features/gui/desktops/niri/parts/quickshell/qml/Bar.qml create mode 100644 home-manager/features/gui/desktops/niri/parts/quickshell/qml/shell.qml (limited to 'home-manager/features/gui/desktops/niri/parts/quickshell/qml') diff --git a/home-manager/features/gui/desktops/niri/parts/quickshell/qml/Bar.qml b/home-manager/features/gui/desktops/niri/parts/quickshell/qml/Bar.qml new file mode 100644 index 0000000..8254890 --- /dev/null +++ b/home-manager/features/gui/desktops/niri/parts/quickshell/qml/Bar.qml @@ -0,0 +1,48 @@ +import Quickshell // for PanelWindow +import Quickshell.Io // for Process +import QtQuick // for Text + +Scope { + id: root + property string time + + Variants { + model: Quickshell.screens + + PanelWindow { + required property var modelData + + screen: modelData + + anchors { + bottom: true + left: true + right: true + } + + implicitHeight: 30 + + Text { + anchors.centerIn: parent + text: root.time + } + } + } + + Process { + id: dateProc + command: ["date"] + running: true + + stdout: StdioCollector { + onStreamFinished: root.time = this.text + } + } + + Timer { + interval: 1000 + running: true + repeat: true + onTriggered: dateProc.running = true + } +} diff --git a/home-manager/features/gui/desktops/niri/parts/quickshell/qml/shell.qml b/home-manager/features/gui/desktops/niri/parts/quickshell/qml/shell.qml new file mode 100644 index 0000000..9d093ad --- /dev/null +++ b/home-manager/features/gui/desktops/niri/parts/quickshell/qml/shell.qml @@ -0,0 +1,5 @@ +import Quickshell + +Scope { + Bar {} +} -- cgit v1.2.3