summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Run/Actions.hs
AgeCommit message (Collapse)Author
66 min.on-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.
2024-03-30Fix zombie processes left by <action> tag and low battery actionUlrik de Muelenaere
This effectively reverts c54d93e and 991a168. While those fix #687 and #688 respectively in the case where the configuration is recompiled, in all other cases they leave zombie processes, since they undo the fix for #181. However, instead of reverting to the deprecated system function, we use the newer spawnCommand and waitForProcess. And like with 991a168, the low battery action now runs in the background to avoid blocking the bar.
2024-02-05actions: spawnCommand instead of deprecated systemjao
This should address the problems reported in issue #688
2022-02-06swaybar-protocol: support for clickable Actionjao
2022-02-03Xmobar.X11.Actions -> Xmobar.Run.Actionsjao