[themes] Add cycling for individual elements

Add functionality to provide lists of values for individual elements of
a theme (e.g. the prefix) and those will be cycled for each call.

This can be used, for example, to show a "charging" symbol for the
battery that continuously goes throw all the battery stages to "animate"
the charging icon.
This commit is contained in:
Tobias Witek 2016-10-31 11:46:07 +01:00
parent 14bce293eb
commit 83bb1deb52
2 changed files with 13 additions and 0 deletions

View file

@ -28,5 +28,7 @@ class Module(bumblebee.module.Module):
return "discharging_high"
return "discharging_full"
else:
if self._capacity > 95:
return "charged"
return "charging"
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4