* feat: add lux/ideapad-conservation-mode plugin * fix: address review blockers on ideapad-conservation-mode - shell-quote pluginDir/USER before splicing into the sudo/runInTerminal command (shell injection) - declare every external command setup-permissions.sh invokes as a manifest dependency, and document them in README Requirements - drop the hardcoded KERNEL=="VPC2004:00" match from the udev rule so it matches any ideapad_acpi instance, consistent with the dynamic discovery the Luau side already does - add the promised NixOS declarative setup section to README - move all user-visible strings out of conservation_mode.luau into translations/en.json, accessed via noctalia.tr() - add the required README Plugin/Usage sections * Update dependencies in plugin.toml * Update setup script requirements in README.md --------- Co-authored-by: Lemmy <studio@quadbyte.net>
20 lines
839 B
JSON
20 lines
839 B
JSON
{
|
|
"title": "Conservation Mode",
|
|
"shortcut": {
|
|
"on": "Conservation On",
|
|
"off": "Conservation Off",
|
|
"na": "Conservation N/A"
|
|
},
|
|
"notify": {
|
|
"enabled": "Enabled - charging capped for battery health.",
|
|
"disabled": "Disabled - charging to 100%.",
|
|
"setup_needed": "One-time setup needed - check the terminal window that just opened."
|
|
},
|
|
"error": {
|
|
"device_not_found": "Could not find the ideapad_acpi conservation_mode sysfs file on this machine.",
|
|
"read_failed": "Could not read the current conservation_mode state.",
|
|
"write_failed": "Failed to write conservation_mode ({error}) and could not locate the plugin directory to run setup.",
|
|
"write_failed_manual": "Failed to write conservation_mode ({error}). Run scripts/setup-permissions.sh with sudo manually, then log out and back in."
|
|
}
|
|
}
|