feat(bar): add locked container widget, use accent colour for icons

This commit adds a new komorebi widget to indicate whether or not the
focused container is locked.

This commit also includes an icon colour change on the layer and layout
widgets to the accent colour.

The commit also renames the locked_window widget to locked_container as
it is more suitable.

PR: #1394
This commit is contained in:
Csaba
2025-04-02 20:15:43 +02:00
committed by LGUG2Z
parent 052eb1c763
commit d38d3c956d
5 changed files with 341 additions and 37 deletions

View File

@@ -365,15 +365,15 @@
}
}
},
"focused_window": {
"description": "Configure the Focused Window widget",
"focused_container": {
"description": "Configure the Focused Container widget",
"type": "object",
"required": [
"enable"
],
"properties": {
"display": {
"description": "Display format of the currently focused window",
"description": "Display format of the currently focused container",
"oneOf": [
{
"description": "Show only icon",
@@ -413,11 +413,11 @@
]
},
"enable": {
"description": "Enable the Komorebi Focused Window widget",
"description": "Enable the Komorebi Focused Container widget",
"type": "boolean"
},
"show_icon": {
"description": "DEPRECATED: use 'display' instead (Show the icon of the currently focused window)",
"description": "DEPRECATED: use 'display' instead (Show the icon of the currently focused container)",
"type": "boolean"
}
}
@@ -508,6 +508,63 @@
}
}
},
"locked_container": {
"description": "Configure the Locked Container widget",
"type": "object",
"required": [
"enable"
],
"properties": {
"display": {
"description": "Display format of the current locked state",
"oneOf": [
{
"description": "Show only icon",
"type": "string",
"enum": [
"Icon"
]
},
{
"description": "Show only text",
"type": "string",
"enum": [
"Text"
]
},
{
"description": "Show an icon and text for the selected element, and text on the rest",
"type": "string",
"enum": [
"TextAndIconOnSelected"
]
},
{
"description": "Show both icon and text",
"type": "string",
"enum": [
"IconAndText"
]
},
{
"description": "Show an icon and text for the selected element, and icons on the rest",
"type": "string",
"enum": [
"IconAndTextOnSelected"
]
}
]
},
"enable": {
"description": "Enable the Komorebi Locked Container widget",
"type": "boolean"
},
"show_when_unlocked": {
"description": "Show the widget event if the layer is unlocked",
"type": "boolean"
}
}
},
"workspace_layer": {
"description": "Configure the Workspace Layer widget",
"type": "object",
@@ -1775,15 +1832,15 @@
}
}
},
"focused_window": {
"description": "Configure the Focused Window widget",
"focused_container": {
"description": "Configure the Focused Container widget",
"type": "object",
"required": [
"enable"
],
"properties": {
"display": {
"description": "Display format of the currently focused window",
"description": "Display format of the currently focused container",
"oneOf": [
{
"description": "Show only icon",
@@ -1823,11 +1880,11 @@
]
},
"enable": {
"description": "Enable the Komorebi Focused Window widget",
"description": "Enable the Komorebi Focused Container widget",
"type": "boolean"
},
"show_icon": {
"description": "DEPRECATED: use 'display' instead (Show the icon of the currently focused window)",
"description": "DEPRECATED: use 'display' instead (Show the icon of the currently focused container)",
"type": "boolean"
}
}
@@ -1918,6 +1975,63 @@
}
}
},
"locked_container": {
"description": "Configure the Locked Container widget",
"type": "object",
"required": [
"enable"
],
"properties": {
"display": {
"description": "Display format of the current locked state",
"oneOf": [
{
"description": "Show only icon",
"type": "string",
"enum": [
"Icon"
]
},
{
"description": "Show only text",
"type": "string",
"enum": [
"Text"
]
},
{
"description": "Show an icon and text for the selected element, and text on the rest",
"type": "string",
"enum": [
"TextAndIconOnSelected"
]
},
{
"description": "Show both icon and text",
"type": "string",
"enum": [
"IconAndText"
]
},
{
"description": "Show an icon and text for the selected element, and icons on the rest",
"type": "string",
"enum": [
"IconAndTextOnSelected"
]
}
]
},
"enable": {
"description": "Enable the Komorebi Locked Container widget",
"type": "boolean"
},
"show_when_unlocked": {
"description": "Show the widget event if the layer is unlocked",
"type": "boolean"
}
}
},
"workspace_layer": {
"description": "Configure the Workspace Layer widget",
"type": "object",
@@ -3118,15 +3232,15 @@
}
}
},
"focused_window": {
"description": "Configure the Focused Window widget",
"focused_container": {
"description": "Configure the Focused Container widget",
"type": "object",
"required": [
"enable"
],
"properties": {
"display": {
"description": "Display format of the currently focused window",
"description": "Display format of the currently focused container",
"oneOf": [
{
"description": "Show only icon",
@@ -3166,11 +3280,11 @@
]
},
"enable": {
"description": "Enable the Komorebi Focused Window widget",
"description": "Enable the Komorebi Focused Container widget",
"type": "boolean"
},
"show_icon": {
"description": "DEPRECATED: use 'display' instead (Show the icon of the currently focused window)",
"description": "DEPRECATED: use 'display' instead (Show the icon of the currently focused container)",
"type": "boolean"
}
}
@@ -3261,6 +3375,63 @@
}
}
},
"locked_container": {
"description": "Configure the Locked Container widget",
"type": "object",
"required": [
"enable"
],
"properties": {
"display": {
"description": "Display format of the current locked state",
"oneOf": [
{
"description": "Show only icon",
"type": "string",
"enum": [
"Icon"
]
},
{
"description": "Show only text",
"type": "string",
"enum": [
"Text"
]
},
{
"description": "Show an icon and text for the selected element, and text on the rest",
"type": "string",
"enum": [
"TextAndIconOnSelected"
]
},
{
"description": "Show both icon and text",
"type": "string",
"enum": [
"IconAndText"
]
},
{
"description": "Show an icon and text for the selected element, and icons on the rest",
"type": "string",
"enum": [
"IconAndTextOnSelected"
]
}
]
},
"enable": {
"description": "Enable the Komorebi Locked Container widget",
"type": "boolean"
},
"show_when_unlocked": {
"description": "Show the widget event if the layer is unlocked",
"type": "boolean"
}
}
},
"workspace_layer": {
"description": "Configure the Workspace Layer widget",
"type": "object",