* feat(battery-threshold): add translations and rule file * feat(battery-threshold): add setup script * feat(battery-threshold): add plugin manifest * feat(battery-threshold): implement battery-threshold service * feat(battery-threshold): implement battery-threshold widget * feat(battery-threshold): implement battery-threshold panel * feat(battery-threshold): add readme * chore(battery-threshold): add dependencies field * chore(battery-threshold): add thumbnail * docs(battery-threshold): add thumbnail to readme * fix(battery-threshold): add thumbnail from generator * chore(battery-threshold): add license and icon fields to plugin.toml * style(battery-threshold): replace tabs with spaces * style(battery-threshold): unflatten translation files * refactor(battery-threshold): use translations for widget tooltip * chore(battery-threshold): replace raw strings with translations * chore(battery-threshold): remove panel ipc event * chore(battery-threshold): check error on file read * chore(battery-threshold): remove `setUpdateInterval` calls * style(battery-threshold): fix formatting * chore(battery-threshold): remove tags capital letters * Update plugin.toml * chore(battery-threshold): remove de fr and tr translations * chore(battery-threshold): update thumbnail * fix(battery-threshold): add shell quoting for runAsync * chore(battery-threshold): embed rule file content in setup script * chore(battery-threshold): update manifest * refactor(battery-threshold): use noctalia.pluginDataDir, log read/write errors * docs(battery-threshold): update README to match template * chore(battery-threshold): add missing dependencies to manifest --------- Co-authored-by: Lemmy <studio@quadbyte.net>
44 lines
1.2 KiB
TOML
44 lines
1.2 KiB
TOML
id = "damian-ds7/battery-threshold"
|
|
name = "Battery Threshold Control"
|
|
version = "1.0.0"
|
|
plugin_api = 3
|
|
author = "Damian D'Souza"
|
|
description = "Set the battery threshold for laptop batteries to extend battery lifespan"
|
|
license = "MIT"
|
|
icon = "battery-eco"
|
|
tags = ["hardware", "system", "utility", "bar", "panel"]
|
|
dependencies = ["test", "pkexec", "bash", "cat", "getent", "groupadd", "usermod", "udevadm", "chgrp", "chmod"]
|
|
|
|
[[service]]
|
|
id = "service"
|
|
entry = "service.luau"
|
|
|
|
[[widget]]
|
|
id = "battery-threshold"
|
|
entry = "widget.luau"
|
|
|
|
[[panel]]
|
|
id = "panel"
|
|
entry = "panel.luau"
|
|
width = 320
|
|
height = 220
|
|
placement = "floating"
|
|
position = "center"
|
|
open_near_click = true
|
|
|
|
[[setting]]
|
|
key = "battery_device"
|
|
type = "folder"
|
|
label_key = "settings.battery-device"
|
|
description_key = "settings.battery-device-desc"
|
|
default = "/sys/class/power_supply/BAT0"
|
|
|
|
[[setting]]
|
|
key = "charge_threshold"
|
|
type = "int"
|
|
label_key = "settings.charge-threshold"
|
|
description_key = "settings.charge-threshold-desc"
|
|
default = 80
|
|
min = 40
|
|
max = 100
|