On Sat, Feb 15, 2014 at 07:22:02PM +0100, Holger Levsen wrote: > Hi, > > On Samstag, 15. Februar 2014, Wouter Verhelst wrote: > > The two .png files cause the icon to alternate between two states. > > ok, thats easy to understand.
Good :-) > > The $theme->set_event causes the sub to be called. > > ok, but what events are there? I still don't get this part. An "event" is the transitioning from one battery level range to the next. Let's take this line from the manpage: discharging = 2:missing.png:low.png, 10:low.png, 100:full.png This means there's a range from 0 to 2 (inclusive), one from 3 to 10, and one from 11 to 100. When you're running on battery, and the battery level goes from >= 11 to <= 10, you move from one range to another. This is when the event triggers. The event you set should be set on the range you enter; in the above example, it should be set on the 3 to 10 range; that is, the code should say $theme->set_event(1, \&suspend, 'd') because the first range (0 to 2) is the range with index 0, and the second range (3 to 10) is the range with index 1. -- This end should point toward the ground if you want to go to space. If it starts pointing toward space you are having a bad problem and you will not go to space today. -- http://xkcd.com/1133/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org