mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-15 02:02:08 -04:00
i18n: update settings search index
This commit is contained in:
@@ -81,6 +81,8 @@ CATEGORY_KEYWORDS = {
|
|||||||
"Power & Sleep": ["shutdown", "suspend", "energy"],
|
"Power & Sleep": ["shutdown", "suspend", "energy"],
|
||||||
"Displays": ["monitor", "screen", "resolution"],
|
"Displays": ["monitor", "screen", "resolution"],
|
||||||
"Desktop Widgets": ["conky", "desktop clock"],
|
"Desktop Widgets": ["conky", "desktop clock"],
|
||||||
|
"Audio": ["sound", "volume", "speaker", "microphone", "headphones", "pipewire"],
|
||||||
|
"Window Rules": ["window", "rules", "matching", "floating", "fullscreen", "opacity"],
|
||||||
}
|
}
|
||||||
|
|
||||||
TAB_INDEX_MAP = {
|
TAB_INDEX_MAP = {
|
||||||
@@ -111,6 +113,8 @@ TAB_INDEX_MAP = {
|
|||||||
"GammaControlTab.qml": 25,
|
"GammaControlTab.qml": 25,
|
||||||
"DisplayWidgetsTab.qml": 26,
|
"DisplayWidgetsTab.qml": 26,
|
||||||
"DesktopWidgetsTab.qml": 27,
|
"DesktopWidgetsTab.qml": 27,
|
||||||
|
"WindowRulesTab.qml": 28,
|
||||||
|
"AudioTab.qml": 29,
|
||||||
}
|
}
|
||||||
|
|
||||||
TAB_CATEGORY_MAP = {
|
TAB_CATEGORY_MAP = {
|
||||||
@@ -141,6 +145,8 @@ TAB_CATEGORY_MAP = {
|
|||||||
25: "Displays",
|
25: "Displays",
|
||||||
26: "Displays",
|
26: "Displays",
|
||||||
27: "Desktop Widgets",
|
27: "Desktop Widgets",
|
||||||
|
28: "Window Rules",
|
||||||
|
29: "Audio",
|
||||||
}
|
}
|
||||||
|
|
||||||
SEARCHABLE_COMPONENTS = [
|
SEARCHABLE_COMPONENTS = [
|
||||||
@@ -387,6 +393,7 @@ def parse_tabs_from_sidebar(sidebar_file):
|
|||||||
("dmsOnly", "dmsConnected"),
|
("dmsOnly", "dmsConnected"),
|
||||||
("hyprlandNiriOnly", "isHyprlandOrNiri"),
|
("hyprlandNiriOnly", "isHyprlandOrNiri"),
|
||||||
("clipboardOnly", "dmsConnected"),
|
("clipboardOnly", "dmsConnected"),
|
||||||
|
("niriOnly", "isNiri"),
|
||||||
]:
|
]:
|
||||||
if f'"{qml_cond}": true' in snippet:
|
if f'"{qml_cond}": true' in snippet:
|
||||||
cond = key
|
cond = key
|
||||||
|
|||||||
@@ -811,6 +811,27 @@
|
|||||||
],
|
],
|
||||||
"icon": "visibility_off"
|
"icon": "visibility_off"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"section": "workspaceDragReorder",
|
||||||
|
"label": "Drag to Reorder",
|
||||||
|
"tabIndex": 4,
|
||||||
|
"category": "Workspaces",
|
||||||
|
"keywords": [
|
||||||
|
"desktop",
|
||||||
|
"drag",
|
||||||
|
"indicators",
|
||||||
|
"move",
|
||||||
|
"reorder",
|
||||||
|
"sort",
|
||||||
|
"spaces",
|
||||||
|
"virtual",
|
||||||
|
"virtual desktops",
|
||||||
|
"workspace",
|
||||||
|
"workspaces"
|
||||||
|
],
|
||||||
|
"description": "Drag workspace indicators to reorder them",
|
||||||
|
"conditionKey": "isNiri"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"section": "workspaceFocusedBorderEnabled",
|
"section": "workspaceFocusedBorderEnabled",
|
||||||
"label": "Focused Border",
|
"label": "Focused Border",
|
||||||
@@ -1630,15 +1651,19 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"section": "_tab_8",
|
"section": "_tab_8",
|
||||||
"label": "System",
|
"label": "Printers",
|
||||||
"tabIndex": 8,
|
"tabIndex": 8,
|
||||||
"category": "System",
|
"category": "System",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"cups",
|
||||||
"linux",
|
"linux",
|
||||||
"os",
|
"os",
|
||||||
|
"print",
|
||||||
|
"printers",
|
||||||
|
"printing",
|
||||||
"system"
|
"system"
|
||||||
],
|
],
|
||||||
"icon": "computer",
|
"icon": "print",
|
||||||
"conditionKey": "cupsAvailable"
|
"conditionKey": "cupsAvailable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -2233,6 +2258,30 @@
|
|||||||
],
|
],
|
||||||
"description": "Width of window border (borderpx)"
|
"description": "Width of window border (borderpx)"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"section": "buttonColorMode",
|
||||||
|
"label": "Button Color",
|
||||||
|
"tabIndex": 10,
|
||||||
|
"category": "Theme & Colors",
|
||||||
|
"keywords": [
|
||||||
|
"accent",
|
||||||
|
"action",
|
||||||
|
"appearance",
|
||||||
|
"button",
|
||||||
|
"buttons",
|
||||||
|
"color",
|
||||||
|
"colors",
|
||||||
|
"colour",
|
||||||
|
"hue",
|
||||||
|
"look",
|
||||||
|
"primary",
|
||||||
|
"scheme",
|
||||||
|
"style",
|
||||||
|
"theme",
|
||||||
|
"tint"
|
||||||
|
],
|
||||||
|
"description": "Color for primary action buttons"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"section": "colorMode",
|
"section": "colorMode",
|
||||||
"label": "Color Mode",
|
"label": "Color Mode",
|
||||||
@@ -5688,12 +5737,71 @@
|
|||||||
"section": "_tab_28",
|
"section": "_tab_28",
|
||||||
"label": "Window Rules",
|
"label": "Window Rules",
|
||||||
"tabIndex": 28,
|
"tabIndex": 28,
|
||||||
"category": "Settings",
|
"category": "Window Rules",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
"floating",
|
||||||
|
"fullscreen",
|
||||||
|
"matching",
|
||||||
|
"opacity",
|
||||||
"rules",
|
"rules",
|
||||||
"settings",
|
|
||||||
"window"
|
"window"
|
||||||
],
|
],
|
||||||
"icon": "select_window"
|
"icon": "select_window",
|
||||||
|
"conditionKey": "isNiri"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"section": "audioInputDevices",
|
||||||
|
"label": "Input Devices",
|
||||||
|
"tabIndex": 29,
|
||||||
|
"category": "Audio",
|
||||||
|
"keywords": [
|
||||||
|
"audio",
|
||||||
|
"device",
|
||||||
|
"devices",
|
||||||
|
"headphones",
|
||||||
|
"input",
|
||||||
|
"microphone",
|
||||||
|
"pipewire",
|
||||||
|
"sound",
|
||||||
|
"speaker",
|
||||||
|
"volume"
|
||||||
|
],
|
||||||
|
"icon": "mic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"section": "audioOutputDevices",
|
||||||
|
"label": "Output Devices",
|
||||||
|
"tabIndex": 29,
|
||||||
|
"category": "Audio",
|
||||||
|
"keywords": [
|
||||||
|
"audio",
|
||||||
|
"device",
|
||||||
|
"devices",
|
||||||
|
"headphones",
|
||||||
|
"microphone",
|
||||||
|
"output",
|
||||||
|
"pipewire",
|
||||||
|
"sound",
|
||||||
|
"speaker",
|
||||||
|
"volume"
|
||||||
|
],
|
||||||
|
"icon": "volume_up"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"section": "_tab_29",
|
||||||
|
"label": "System",
|
||||||
|
"tabIndex": 29,
|
||||||
|
"category": "Audio",
|
||||||
|
"keywords": [
|
||||||
|
"audio",
|
||||||
|
"headphones",
|
||||||
|
"microphone",
|
||||||
|
"pipewire",
|
||||||
|
"sound",
|
||||||
|
"speaker",
|
||||||
|
"system",
|
||||||
|
"volume"
|
||||||
|
],
|
||||||
|
"icon": "computer"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user