From c5d8a4a9cf16f8a28c737d4d3466e392762b032a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 29 Jan 2024 21:54:41 +0700 Subject: [PATCH] overview: bring back workspace number --- .config/ags/widgets/overview/overview_hyprland.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/ags/widgets/overview/overview_hyprland.js b/.config/ags/widgets/overview/overview_hyprland.js index 1b291abc0..bf90f7943 100644 --- a/.config/ags/widgets/overview/overview_hyprland.js +++ b/.config/ags/widgets/overview/overview_hyprland.js @@ -213,6 +213,8 @@ const Workspace = (index) => { }); widget.clear = () => { fixed.get_children().forEach(ch => ch.destroy()); + const offset = Math.floor((Hyprland.active.workspace.id - 1) / NUM_OF_WORKSPACES_SHOWN) * NUM_OF_WORKSPACES_SHOWN; + fixed.put(WorkspaceNumber(offset + index), 0, 0); } widget.set = (clientJson) => { // if(clientMap.get(clientJson.address)) clientMap.get(clientJson.address).destroy();