* refactor(battery-threshold): change setup to run script in terminal via sudo * chore(battery-threshold): update dependencies * docs(battery-threshold): update threshold.txt location description * chore(battery-threshold): bump version
44 lines
1.2 KiB
TOML
44 lines
1.2 KiB
TOML
id = "damian-ds7/battery-threshold"
|
|
name = "Battery Threshold Control"
|
|
version = "1.0.1"
|
|
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", "sudo", "bash", "readlink", "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
|