From 92efbc61f72923304b92057d16760cd4d29dc67f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 24 Aug 2025 15:46:15 +1000 Subject: bar: better handling for named workspaces Fixes #448 --- modules/bar/components/workspaces/Workspace.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/bar/components/workspaces/Workspace.qml') diff --git a/modules/bar/components/workspaces/Workspace.qml b/modules/bar/components/workspaces/Workspace.qml index 8124024..612edb7 100644 --- a/modules/bar/components/workspaces/Workspace.qml +++ b/modules/bar/components/workspaces/Workspace.qml @@ -35,7 +35,8 @@ ColumnLayout { animate: true text: { - const label = Config.bar.workspaces.label || root.ws; + const ws = Hypr.workspaces.values.find(w => w.id === root.ws); + const label = Config.bar.workspaces.label || (!ws || ws.name == root.ws ? root.ws : ws.name[0].toUpperCase()); const occupiedLabel = Config.bar.workspaces.occupiedLabel || label; const activeLabel = Config.bar.workspaces.activeLabel || (root.isOccupied ? occupiedLabel : label); return root.activeWsId === root.ws ? activeLabel : root.isOccupied ? occupiedLabel : label; -- cgit v1.2.3-freya