From 608c48d139209fb116d1844975412fee41b092da Mon Sep 17 00:00:00 2001
From: Sakooooo <78461130+Sakooooo@users.noreply.github.com>
Date: Tue, 26 Nov 2024 10:21:55 +0400
Subject: [PATCH] make bar show workspaces 1-10
---
config/ags/widget/Bar.tsx | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/config/ags/widget/Bar.tsx b/config/ags/widget/Bar.tsx
index 50f0f3c9..e6f30886 100644
--- a/config/ags/widget/Bar.tsx
+++ b/config/ags/widget/Bar.tsx
@@ -79,21 +79,17 @@ function Media() {
}
function Workspaces() {
- const hypr = Hyprland.get_default()
+ const hypr = Hyprland.get_default()
- return
- {bind(hypr, "workspaces").as(wss => wss
- .sort((a, b) => a.id - b.id)
- .map(ws => (
-
- ))
- )}
-
+ const workspaceButtons: number[] = (Array.from({ length: 10 }, (_, id) => id + 1))
+
+ return
+ {workspaceButtons.map (workspace =>
+
+ )}
+
}
function FocusedClient() {
@@ -132,7 +128,7 @@ export default function Bar(monitor: Gdk.Monitor) {
anchor={anchor}>
-
+