Set the battery threshold for laptop batteries to extend battery lifespan
A plugin for Noctalia Shell to control the battery threshold on laptops, helping extend battery lifespan. This plugin only works if your laptop supports charge threshold control (as exported by the kernel in sysfs). The plugin looks like this in action:

Add the bar widget to your bar. Click to open the panel and adjust the battery threshold using the slider.
This plugin requires write access to the battery threshold sysfs file. The
included setup_rules.sh script configures an udev rule that grants write
permission to members of the battery_ctl group:
$ sudo ./setup_rules.sh
This script will:
battery_ctl group (if it doesn't exist)battery_ctl group/etc/udev/rules.d/Note: A reboot may be required for write access to take effect.
# Toggle panel
qs -c noctalia-shell ipc call plugin:battery-threshold togglePanel
# Set threshold
qs -c noctalia-shell ipc call plugin:battery-threshold set <value>