The extension provides an easy and user-friendly way to toggle battery preservation mode available on certain laptops and visually get its current state. Preserve Battery QuickToggle is an evolution of my previous extension "Lenovo IdeaPad goodies". Since kernel 6.16, the battery conservation mode available on Lenovo IdeaPad laptops has been using the new charge_types API. I created this new extension to take advantage of this standardization, allowing it to support a wider variety of laptops.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
| Version | Status |
|---|---|
| 2 | Active |
| 1 | Active |
Better to directly implement `destroy()` function isntead of connecting signals (line 90 `extension.js`). You can also add `donations` to the `metadata.json`, so people can donate to you if they want: [Extension Anatomy: donations](https://gjs.guide/extensions/overview/anatomy.html#donations) If you need any help with your extension you can ask us on: - [GNOME Extensions Matrix Channel](https://matrix.to/#/#extensions:gnome.org) - IRC Bridge: irc://irc.gimpnet.org/shell-extensions