Elv13 / awesome-configs

My AwesomeWM configuration
126 stars 19 forks source link

Fix battery widget when energy_now is not present #27

Closed kamushadenes closed 8 years ago

kamushadenes commented 8 years ago

My system, Gentoo, didn't had the 'energy_now' file inside BAT0. This patch fixes it to work on my environment and certainly on others, by using the 'capacity' file.

It's my first contact with Lua, so sorry for any weird stuff I may have done.

Elv13 commented 8 years ago

Look good. Can you squash the commits? Thanks

And by the way, welcome!

kamushadenes commented 8 years ago

Done.

Thank you!

Elv13 commented 8 years ago

Thanks

By the way, as I tell everybody who report bugs (or better, fix them!), this version (2014) is not under active development. The next one (2016) will be released after the Awesome 3.6 release. It already exist, but require many upstream patches in the process of being merged, so it is totally useless for anyone beside me.