forked from Shinonome/dots-hyprland
bar: add workspace number mapping
This commit is contained in:
@@ -217,7 +217,7 @@ Item {
|
|||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
font.pixelSize: Appearance.font.pixelSize.small - ((text.length - 1) * (text !== "10") * 2)
|
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
|
elide: Text.ElideRight
|
||||||
color: (monitor?.activeWorkspace?.id == button.workspaceValue) ?
|
color: (monitor?.activeWorkspace?.id == button.workspaceValue) ?
|
||||||
Appearance.m3colors.m3onPrimary :
|
Appearance.m3colors.m3onPrimary :
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ Singleton {
|
|||||||
property bool showAppIcons: true
|
property bool showAppIcons: true
|
||||||
property bool alwaysShowNumbers: false
|
property bool alwaysShowNumbers: false
|
||||||
property int showNumberDelay: 300 // milliseconds
|
property int showNumberDelay: 300 // milliseconds
|
||||||
|
property list<string> numberMapping: []
|
||||||
}
|
}
|
||||||
property JsonObject weather: JsonObject {
|
property JsonObject weather: JsonObject {
|
||||||
property bool enable: false
|
property bool enable: false
|
||||||
|
|||||||
Reference in New Issue
Block a user