polybar / polybar

A fast and easy-to-use status bar
https://polybar.github.io
MIT License
14.2k stars 710 forks source link

battery module #1109

Open ghost opened 6 years ago

ghost commented 6 years ago

it will be nicer if the battery module handles the state where the laptop's battery is removed and is running on the AC adapter and also the transition in between plugin and out the battery ^^

NBonaparte commented 6 years ago

Could you elaborate? What functionality would you like to see?

ghost commented 6 years ago

@NBonaparte Case 1 : if laptop battery is unpluged and the laptop is running on the AC cable we start polybar and it will drop the battey module thats normal because there is no battery here i want it to not drop the battey module and instead show or print message that we are running on AC only (like it handle this event ) and therefore i can put a nice lightning icon of it rather then having nothing in this case

Case 2 : lets suppose that we are running on AC only and then i plug the battery i want polybar [ battery module ] to automaticly detect it and then show that we are in charging mode

sorry for my bad english :3 if its not clear enough i will do a small screencast to show you ^^ thank you

NBonaparte commented 6 years ago

I'll take a look at implementing these in the next few days.