control: reopen -1 control: retitle -1 document how to use scripted themes in theme.cfg
Hi Wouter, On Freitag, 14. Februar 2014, Wouter Verhelst wrote: > There's a manpage which documents how to use it... that manpage doesnt give useful hints how to configure this, at least not for people who are not much into perl... so I read (and have read there, when filing this bug!) this: ----- However, unless you want to build the theme dynamically, doing it this way is not recommended. Instead, you would build the theme from a .cfg file, and possibly modify it from perl. Let's say you wish to add an event to suspend the system when the power gets low; in that case, you'd do something like this: sub suspend { system("sudo pm-suspend"); } my $theme = fdpowermon::theme::get_theme("mytheme"); $theme->set_event(0, \&suspend, 'd'); -------- Do you mean I should add the last 5 lines (starting at "sub suspend") to theme.cfg? Maybe you could make this clearer in the manpage or supply a more "bloated"/advanced/you_name_it theme.cfg in /usr/share/doc/fdpowermon/examples/ ?! I'd like to use this feature and I dont want to ask Gregor how to. I'd rather be able to learn this from installing the package ;-) cheers, Holger
signature.asc
Description: This is a digitally signed message part.