[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:
parent
14bce293eb
commit
83bb1deb52
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue