* fix: invalid check in getWarningThreshold * fix: invalid status * feat: use dbus events instead of polling * fix: invalid status again * fix: dump version and set valid plugin API * fix: add commandExists check * fix: getColor function (warning color when not charging) * feat: use upower instead of cat /sys * feat: notify on error * fix: cleaner code * fix: use noctalia.tr for notification (not logs, intended) * feat: migrate from dbus-monitor to gdbus (everything in one line) * feat: use gdbus to init and update, parse only when needed * feat: add label_content and optimisations * fix: remove multiple commands check not needed anymore * fix: update README and dump version * fix: default data, warning_threshold check, floor percent
64 lines
1.9 KiB
JSON
64 lines
1.9 KiB
JSON
{
|
|
"settings": {
|
|
"battery": {
|
|
"auto": "Auto",
|
|
"bat0": "BAT0",
|
|
"custom": "Custom",
|
|
"description": "Detect the battery automatically or set a custom name.",
|
|
"label": "Battery"
|
|
},
|
|
"battery_name": {
|
|
"description": "Name of the battery.",
|
|
"label": "Battery Name"
|
|
},
|
|
"charging_color": {
|
|
"description": "Color applied when connected to AC power.",
|
|
"label": "Charging Color"
|
|
},
|
|
"color": {
|
|
"description": "Color role for this widget's icon and label; fixed hex colors are also supported.",
|
|
"label": "Color"
|
|
},
|
|
"hide_full": {
|
|
"description": "Hide the battery widget when fully charged.",
|
|
"label": "Hide When Full"
|
|
},
|
|
"hide_plugged": {
|
|
"description": "Hide the battery widget when connected to AC power.",
|
|
"label": "Hide When Plugged In"
|
|
},
|
|
"layout": {
|
|
"description": "Widget layout.",
|
|
"horizontal": "Horizontal",
|
|
"label": "Layout",
|
|
"vertical": "Vertical"
|
|
},
|
|
"refresh_interval": {
|
|
"description": "Controls how frequently the widget updates its content. (in seconds)",
|
|
"label": "Refresh Interval"
|
|
},
|
|
"show_glyph": {
|
|
"description": "Show the battery icon.",
|
|
"label": "Show Glyph"
|
|
},
|
|
"show_label": {
|
|
"description": "Show text next to the icon.",
|
|
"label": "Show Label"
|
|
},
|
|
"warning_color": {
|
|
"description": "Color applied when charge is at or below noctalia's warning threshold.",
|
|
"label": "Warning Color"
|
|
},
|
|
"label_content": {
|
|
"label": "Label Content",
|
|
"description": "What the battery label shows: charge percentage, time remaining, or power draw.",
|
|
"percent": "Percent",
|
|
"time": "Time",
|
|
"rate": "Rate"
|
|
}
|
|
},
|
|
"notify": {
|
|
"error": "Something went wrong. Check the Noctalia log for details."
|
|
}
|
|
}
|