From 28c9cacf68c8b47216b1f6cec3cd142d992bc2be Mon Sep 17 00:00:00 2001 From: kirisaki-vk Date: Thu, 28 Aug 2025 09:30:54 +0300 Subject: [PATCH] bar: add workspace number mapping --- .config/quickshell/ii/modules/bar/Workspaces.qml | 2 +- .config/quickshell/ii/modules/common/Config.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/modules/bar/Workspaces.qml b/.config/quickshell/ii/modules/bar/Workspaces.qml index ace453ba0..d3ded59b8 100644 --- a/.config/quickshell/ii/modules/bar/Workspaces.qml +++ b/.config/quickshell/ii/modules/bar/Workspaces.qml @@ -217,7 +217,7 @@ Item { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter font.pixelSize: Appearance.font.pixelSize.small - ((text.length - 1) * (text !== "10") * 2) - text: `${button.workspaceValue}` + text: `${Config.options?.bar.workspaces.numberMapping[button.workspaceValue - 1] || button.workspaceValue}` elide: Text.ElideRight color: (monitor?.activeWorkspace?.id == button.workspaceValue) ? Appearance.m3colors.m3onPrimary : diff --git a/.config/quickshell/ii/modules/common/Config.qml b/.config/quickshell/ii/modules/common/Config.qml index 06d593bd2..c8a8bc78a 100644 --- a/.config/quickshell/ii/modules/common/Config.qml +++ b/.config/quickshell/ii/modules/common/Config.qml @@ -174,6 +174,7 @@ Singleton { property bool showAppIcons: true property bool alwaysShowNumbers: false property int showNumberDelay: 300 // milliseconds + property list numberMapping: [] } property JsonObject weather: JsonObject { property bool enable: false