From 60b824e7a41cd777cb4d8e88c6fadb1938d7bd64 Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 5 Feb 2026 09:12:08 -0500 Subject: [PATCH] i18n: update settings search index --- .../translations/extract_settings_index.py | 7 ++ .../translations/settings_search_index.json | 118 +++++++++++++++++- 2 files changed, 120 insertions(+), 5 deletions(-) diff --git a/quickshell/translations/extract_settings_index.py b/quickshell/translations/extract_settings_index.py index bd75242b..18429db6 100755 --- a/quickshell/translations/extract_settings_index.py +++ b/quickshell/translations/extract_settings_index.py @@ -81,6 +81,8 @@ CATEGORY_KEYWORDS = { "Power & Sleep": ["shutdown", "suspend", "energy"], "Displays": ["monitor", "screen", "resolution"], "Desktop Widgets": ["conky", "desktop clock"], + "Audio": ["sound", "volume", "speaker", "microphone", "headphones", "pipewire"], + "Window Rules": ["window", "rules", "matching", "floating", "fullscreen", "opacity"], } TAB_INDEX_MAP = { @@ -111,6 +113,8 @@ TAB_INDEX_MAP = { "GammaControlTab.qml": 25, "DisplayWidgetsTab.qml": 26, "DesktopWidgetsTab.qml": 27, + "WindowRulesTab.qml": 28, + "AudioTab.qml": 29, } TAB_CATEGORY_MAP = { @@ -141,6 +145,8 @@ TAB_CATEGORY_MAP = { 25: "Displays", 26: "Displays", 27: "Desktop Widgets", + 28: "Window Rules", + 29: "Audio", } SEARCHABLE_COMPONENTS = [ @@ -387,6 +393,7 @@ def parse_tabs_from_sidebar(sidebar_file): ("dmsOnly", "dmsConnected"), ("hyprlandNiriOnly", "isHyprlandOrNiri"), ("clipboardOnly", "dmsConnected"), + ("niriOnly", "isNiri"), ]: if f'"{qml_cond}": true' in snippet: cond = key diff --git a/quickshell/translations/settings_search_index.json b/quickshell/translations/settings_search_index.json index 04f9cfcc..75db6b22 100644 --- a/quickshell/translations/settings_search_index.json +++ b/quickshell/translations/settings_search_index.json @@ -811,6 +811,27 @@ ], "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", "label": "Focused Border", @@ -1630,15 +1651,19 @@ }, { "section": "_tab_8", - "label": "System", + "label": "Printers", "tabIndex": 8, "category": "System", "keywords": [ + "cups", "linux", "os", + "print", + "printers", + "printing", "system" ], - "icon": "computer", + "icon": "print", "conditionKey": "cupsAvailable" }, { @@ -2233,6 +2258,30 @@ ], "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", "label": "Color Mode", @@ -5688,12 +5737,71 @@ "section": "_tab_28", "label": "Window Rules", "tabIndex": 28, - "category": "Settings", + "category": "Window Rules", "keywords": [ + "floating", + "fullscreen", + "matching", + "opacity", "rules", - "settings", "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" } ]