mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-11 03:27:08 +02:00
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:
201
schema.bar.json
201
schema.bar.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user