summaryrefslogtreecommitdiff
path: root/home-manager/features/gui/desktops/niri/parts/quickshell/qml
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-10-15 08:39:09 -0400
committertriethyl <triethylammonium@pm.me>2025-10-15 08:39:09 -0400
commita9fc9cf8832c471854bb7fa61137a5272f1076b6 (patch)
treee640b844ea405943c6f4aca5bd40bc299ef37ecf /home-manager/features/gui/desktops/niri/parts/quickshell/qml
parentcc295c0d7e2c6ce80117322ea29f0f8219cd7a12 (diff)
niri: rearranged files and small changes
Diffstat (limited to 'home-manager/features/gui/desktops/niri/parts/quickshell/qml')
-rw-r--r--home-manager/features/gui/desktops/niri/parts/quickshell/qml/Bar.qml48
-rw-r--r--home-manager/features/gui/desktops/niri/parts/quickshell/qml/shell.qml5
2 files changed, 53 insertions, 0 deletions
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 {}
+}