aboutsummaryrefslogtreecommitdiff
path: root/quickshell/items/Workspace.qml
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2025-12-08 16:58:52 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2025-12-08 16:58:52 +0530
commitaf844bbc44741a971614175248cc29505d1acbd1 (patch)
treed75c8dc30e7f0f0596b5f087ad3697678a042e3e /quickshell/items/Workspace.qml
parent15bed9293ad7fb0b54cef68cdbf1a0549ec7aa97 (diff)
replaced wofi with custom app menu + right side apps bar + organization of qml files
Diffstat (limited to 'quickshell/items/Workspace.qml')
-rw-r--r--quickshell/items/Workspace.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/quickshell/items/Workspace.qml b/quickshell/items/Workspace.qml
new file mode 100644
index 0000000..f793850
--- /dev/null
+++ b/quickshell/items/Workspace.qml
@@ -0,0 +1,22 @@
+import QtQuick
+import Quickshell.Hyprland
+
+Repeater {
+ model: 5
+
+ Text {
+ property bool isActive: Hyprland.focusedWorkspace?.id === (index + 1)
+
+ text: index + 1
+ color: isActive ? shellRoot.green : shellRoot.white
+ font {
+ pixelSize: shellRoot.fontSize;
+ bold: true;
+ }
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: Hyprland.dispatch("workspace " + (index + 1))
+ }
+ }
+}