From 5a169bea725c53c9c64f9e1508dbb98c416f953a Mon Sep 17 00:00:00 2001 From: Scott McKendry Date: Sat, 11 Jul 2026 02:17:51 +1200 Subject: [PATCH] fix(settings): battery tab items not in search (#2794) (cherry picked from commit 4bdb7d17b2f510612cd49264a78f5523cdde30d5) --- .../translations/extract_settings_index.py | 2 + .../translations/settings_search_index.json | 343 +++++++++++++++++- 2 files changed, 343 insertions(+), 2 deletions(-) diff --git a/quickshell/translations/extract_settings_index.py b/quickshell/translations/extract_settings_index.py index 8bd213a86..41a5e94cf 100755 --- a/quickshell/translations/extract_settings_index.py +++ b/quickshell/translations/extract_settings_index.py @@ -134,6 +134,7 @@ TAB_INDEX_MAP = { "DefaultAppsTab.qml": 34, "UsersTab.qml": 35, "AutoStartTab.qml": 36, + "BatteryTab.qml": 42, } TAB_CATEGORY_MAP = { @@ -178,6 +179,7 @@ TAB_CATEGORY_MAP = { 39: "Network", 40: "Network", 41: "Network", + 42: "Power & Security", 43: "Dank Dash", } diff --git a/quickshell/translations/settings_search_index.json b/quickshell/translations/settings_search_index.json index 45ce40040..b14197437 100644 --- a/quickshell/translations/settings_search_index.json +++ b/quickshell/translations/settings_search_index.json @@ -9419,24 +9419,363 @@ ], "icon": "vpn_key" }, + { + "section": "batteryAutoPowerSaver", + "label": "Auto Power Saver", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "auto", + "automatically", + "battery", + "charge", + "charging", + "hibernate", + "power", + "profile", + "reboot", + "restart", + "saver", + "security", + "shutdown", + "sleep", + "suspend", + "turn" + ], + "description": "Automatically turn on Power Saver profile when battery is low." + }, + { + "section": "batteryAlerts", + "label": "Battery Alerts", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "alerts", + "battery", + "charge", + "charging", + "considered", + "percentage", + "power", + "security" + ], + "icon": "notifications", + "description": "Set the percentage at which the battery is considered low." + }, + { + "section": "batteryChargeLimit", + "label": "Battery Charge Limit", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "battery", + "charge", + "charging", + "extend", + "level", + "lifespan", + "limit", + "maximum", + "power", + "security" + ], + "description": "Limit the maximum battery charge level to extend lifespan." + }, + { + "section": "batteryProtection", + "label": "Battery Protection", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "battery", + "charge", + "charging", + "extend", + "level", + "lifespan", + "limit", + "maximum", + "power", + "protection", + "security" + ], + "icon": "tune", + "description": "Limit the maximum battery charge level to extend lifespan." + }, + { + "section": "batteryStatusCard", + "label": "Battery Status", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "battery", + "charge", + "charging", + "power", + "security", + "status" + ], + "icon": "battery_charging_full" + }, + { + "section": "batteryNotifyCritical", + "label": "Critical Battery Notifications", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "alert", + "alerts", + "battery", + "charge", + "charging", + "critical", + "level", + "notif", + "notifications", + "notifs", + "power", + "reaches", + "security", + "show", + "urgent" + ], + "description": "Show an urgent alert when battery reaches critical level." + }, + { + "section": "batteryCriticalThreshold", + "label": "Critical Threshold", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "alert", + "battery", + "charge", + "charging", + "critical", + "percentage", + "power", + "security", + "threshold", + "trigger" + ], + "description": "Battery percentage to trigger a critical alert." + }, + { + "section": "batteryNotifyLow", + "label": "Low Battery Notifications", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "alert", + "alerts", + "battery", + "charge", + "charging", + "low", + "notif", + "notifications", + "notifs", + "popup", + "power", + "running", + "security", + "show", + "warning" + ], + "description": "Show a warning popup when battery is running low." + }, + { + "section": "batteryLowThreshold", + "label": "Low Battery Threshold", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "battery", + "charge", + "charging", + "considered", + "low", + "percentage", + "power", + "security", + "threshold" + ], + "description": "Set the percentage at which the battery is considered low." + }, + { + "section": "batteryChargeLimitNotificationType", + "label": "Notification Type", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "alert", + "charge", + "choose", + "limit", + "notif", + "notification", + "notified", + "power", + "reached", + "security", + "type" + ], + "description": "Choose how to be notified when charge limit is reached." + }, + { + "section": "batteryCriticalNotificationType", + "label": "Notification Type", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "about", + "alert", + "alerts", + "battery", + "charge", + "charging", + "choose", + "critical", + "notif", + "notification", + "notified", + "power", + "security", + "type" + ], + "description": "Choose how to be notified about critical battery alerts." + }, + { + "section": "batteryLowNotificationType", + "label": "Notification Type", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "about", + "alert", + "alerts", + "battery", + "charge", + "charging", + "choose", + "notif", + "notification", + "notified", + "power", + "security", + "type" + ], + "description": "Choose how to be notified about low battery alerts." + }, + { + "section": "batteryNotifyChargeLimit", + "label": "Notify when limit is reached", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "alert", + "battery", + "charge", + "charging", + "limit", + "notif", + "notification", + "notify", + "power", + "reached", + "reaches", + "security", + "show" + ], + "description": "Show a notification when battery reaches the charge limit." + }, { "section": "_tab_42", "label": "Power & Security", "tabIndex": 42, - "category": "Settings", + "category": "Power & Security", "keywords": [ "hibernate", "power", "reboot", "restart", "security", - "settings", "shutdown", "sleep", "suspend" ], "icon": "security" }, + { + "section": "powerProfilesSaving", + "label": "Power Profiles & Saving", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "automatically", + "battery", + "charge", + "charging", + "hibernate", + "power", + "profile", + "profiles", + "reboot", + "restart", + "saver", + "saving", + "security", + "shutdown", + "sleep", + "suspend", + "turn" + ], + "icon": "power", + "description": "Automatically turn on Power Saver profile when battery is low." + }, + { + "section": "acProfileName", + "label": "Profile when Plugged In (AC)", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "(ac)", + "connected", + "hibernate", + "plugged", + "power", + "profile", + "reboot", + "restart", + "security", + "shutdown", + "sleep", + "suspend" + ], + "description": "Power profile to use when AC power is connected." + }, + { + "section": "batteryProfileName", + "label": "Profile when on Battery", + "tabIndex": 42, + "category": "Power & Security", + "keywords": [ + "battery", + "charge", + "charging", + "hibernate", + "power", + "profile", + "reboot", + "restart", + "running", + "security", + "shutdown", + "sleep", + "suspend" + ], + "description": "Power profile to use when running on battery power." + }, { "section": "_tab_43", "label": "Widgets & Notifications",