NuckChorris / assault

A simple customizable battery indicator ported to as many WMs, docks, and platforms as possible.
MIT License
36 stars 8 forks source link

AwesomeWM: Add timer for automated redraw #19

Closed Feandil closed 7 years ago

Feandil commented 7 years ago

Disclaimer: I'm not used to lua nor to awesome APIs, so this might be complete rubbish (even if it works for me)

This should fix https://github.com/NuckChorris/assault/issues/16 by adding a timer that will toggle a re-draw every timeout, it's based on similar code found in other widgets.

Only tested on awesome 4.0, not on 3.5 or lower