From 5cf07d7e54353e433842a624c8b51beb9b295a7e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:17:54 +0400 Subject: [PATCH] aaa --- config/quickshell/Workspaces.qml | 5 ++-- config/quickshell/shell.qml | 46 ++++++++++++++++++++++++++------ 2 files changed, 41 insertions(+), 10 deletions(-) diff --git a/config/quickshell/Workspaces.qml b/config/quickshell/Workspaces.qml index 4fd85ee0..50832ed4 100644 --- a/config/quickshell/Workspaces.qml +++ b/config/quickshell/Workspaces.qml @@ -1,5 +1,6 @@ -import Quickshell.Hyprland import QtQuick import QtQuick.Layouts +import Quickshell +import Quickshell.Hyprland - +Repeater {} diff --git a/config/quickshell/shell.qml b/config/quickshell/shell.qml index 8f636dfb..07ae2d26 100644 --- a/config/quickshell/shell.qml +++ b/config/quickshell/shell.qml @@ -1,6 +1,8 @@ import Quickshell import Quickshell.Io +import Quickshell.Hyprland import QtQuick +import QtQuick.Layouts ShellRoot { @@ -15,20 +17,48 @@ ShellRoot { screen: modelData anchors { - top: true - left: true - right: true + top: true; + left: true; + right: true; } - height: 30 + height: 30; + // left + RowLayout { + anchors.left: parent.left + anchors.top: parent.top + anchors.bottom: parent.bottom + spacing: 5 - Text { - anchors.centerIn: parent + Workspaces {} + Text { + text: "Left side" + } + } + + // Center + RowLayout { + anchors.centerIn: parent + Text { // now just time instead of root.time - text: time - } + text: time + } + + } + + // right + RowLayout { + anchors.right: parent.right + anchors.top: parent.top + anchors.bottom: parent.bottom + spacing: 5 + + Text { + text: "Right side" + } + } } }