* Initial commit, added psutil for getting tablet/laptop battery percentage, initial code for getting the values and displaying the icon * add battery svgs for light theme * added light styled battery svgs for dark themes * update icon based on battery percentage and if device is charging * indentation fix, and forgot to add battery plugged checks for 33% and 66% battery levels * move battery polling to its own timer now that i understand how to add an additional timer, checks every 30 seconds. check for if show battery is on or off * add toggle to config for settings * show battery callback as screen.restart_ks instead of just reloading panels * move self.battery_percentage() to end of reload_icons this ensures that when a theme is changed the icon is updated instead of waiting for the timeout to update the icon again * remove left over commented out code * only call self.battery_percentage when config is true * adjust tooltip message * split creatation of elements from updating elements * change print to logging.debug, handle rouding for percentage in the f-string * remove code that was moved to `attery_init()`, only destroy icon element when updating icons/percentage text, remove redundant calls to `.pack_start` (just call it once after setting the icon). * only create battery_update timer if config setting is true * new material icons remove old icons * `self.battery_init() in `__init__` def * fix: lint * refactors * style: update icons to follow themes * refactor: remove config, make the show/hide automatic * style: bigger battery icons for z-bolt and colorized --------- Co-authored-by: MrTylerjet <MrTylerjet@gmail.com>
16 lines
483 B
Plaintext
16 lines
483 B
Plaintext
jinja2==3.1.4;python_version>="3.6"
|
|
requests==2.32.3;python_version>="3.8"
|
|
sdbus==0.11.1;python_version>="3.8"
|
|
sdbus_networkmanager==2.0.0;python_version>="3.8"
|
|
|
|
# libmpv-dev 0.33 is required for 1.0
|
|
python-mpv==0.5.2;python_version<"3.10"
|
|
python-mpv==1.0.7;python_version>="3.10"
|
|
|
|
backports.zoneinfo;python_version<"3.9"
|
|
|
|
PyGObject==3.48.1;python_version>="3.8"
|
|
pycairo==1.26.1;python_version>="3.8"
|
|
websocket-client==1.8.0;python_version>="3.8"
|
|
psutil==6.0.0;python_version>="3.8"
|