summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Config/Template.hs
AgeCommit message (Collapse)Author
4 hourson-click implementation based on implicit actionsjao
Draw methods based on Segments don't keep enough information to fill in correctly a list of actions. With this implementation, we introduce empty actions as markers where Runnable instances can be inserted. Triggering them is then just calling the corresponding Exec method, onClick. Conceivably, onClick could receive some kind of additional state, but that's better done as a base Plugin instance that keeps state and makes it available via its onClick function, for instance. Very lightly tested, needs documentation and extending the plugin example to include an onClick method.
2022-10-06whitespacejao
2022-10-01wee clean upsjao
2022-10-01Config.Template refactoringsjao
2022-10-01a couple of superfluous IO usages removedjao
2022-09-30Run.Parsers -> Config.Templatejao