summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar
AgeCommit message (Collapse)Author
2024-05-07Revert "Make the Kbd monitor clickable, with click selecting the next layout"jao
This reverts commit 0fec9d3fdf9bc86187f9f670dafd2ef57fe03f29. Mouse actions can already be attached to the monitor, and for instance use there invocations to setxbdmap to switch layouts. Fixes #703.
2024-03-30fix for unmet pattern matches warnings (clean build)jao
2024-03-30Add ctor for Locks plugin to accpet on/off labelsEnrico Maria De Angelis
2024-03-30Fix waitForProcess errors when configuration is recompiledUlrik de Muelenaere
Previously, xmobar would ignore SIGCHLD, but only when the configuration is recompiled. This means child processes would not leave zombies, so that waiting for them to exit (either directly by calling waitForProcess, or indirectly through another function from System.Process, like system or readProcessWithExitCode) would produce an error. This breaks the Alsa, Com (#657) and NotmuchMail plugins, as well as the <action> tag (#687) and low battery action (#688). As far as I can tell, bracketing the recompilation in uninstallSignalHandlers and installSignalHandlers was inherited from xmonad. In xmonad, SIGPIPE and SIGCHLD are always ignored (installSignalHandlers is called at the start of xmonad and launch), so the bracket is necessary to be able to wait for the compiler or build script to exit. Since xmobar does not otherwise ignore the signals, it is not necessary to change signal handlers at all during recompilation. Removing it leaves the default action for SIGCHLD, which fixes the issues described above. Fixes #657, #687 and #688.
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-03-17Make the Kbd monitor clickable, with click selecting the next layoutEnrico Maria De Angelis
2024-03-06copyright yearsjao
2024-02-18battery: spawnCommand instead of system when running actions0.47.4jao
should fix for real #688 this time
2024-02-05actions: spawnCommand instead of deprecated systemjao
This should address the problems reported in issue #688
2024-01-31Enable use of shared librariesVekhir
Haskell libraries can be linked statically or dynamically. Either way, all packages must be linked the same way. This means that if all dependencies of `xmobar` are shared libraries, then `xmobar` itself must be built using dynamic linking. Therefore, to compile the individual `xmobar` executables, add the `-dynamic` flag to signal that they are built with shared libraries. This flag is put behind an #ifdef to easily configure static vs dynamic linking. To use shared libraries, define SHARED_LIBRARIES
2023-11-11compatibility with GHC 9.6jao
2023-08-30changelog and copyright years0.47jao
2023-06-02center middle section for templates of the form "}M{" (fixes #677)jao
2023-03-22Handle SocketError when attempting to connect to dbusCorey Halpin
Extends the solution from 8a53271cd6 to also handle SocketError, so that the process will not terminate. See also issue #537.
2022-12-31layout: special case for empty left segment (see #655)jao
2022-12-23Fix for #663: honour explicit bg/fg colors for iconsjao
2022-12-10off by onesjao
2022-12-10off by onejao
2022-12-10alignment: avoid overlapping of left and right segmentsjao
Might help with #655
2022-11-30lintingjao
2022-11-30Adds DPI configuration (#660)jgrocho
Adds a new DPI configuration, especially useful for HiDPI displays. This changes the scaling factor for fonts as displayed by Pango. It defaults to 96.0 which corresponds to an average screen and is the default in [Cairo](https://hackage.haskell.org/package/pango-0.13.5.0/docs/Graphics-Rendering-Pango-Cairo.html#v:cairoFontMapGetDefault). It's also possible to supply a zero or negative value to use the default scaling factor, but I felt setting the default to 96.0 makes it more explicit. It also adds a matching command line option. I haven't tested it too thoroughly, but in my limited use it appears to be working as intended. One thing this does not do is scale XBM and XPM bitmap files which I'm unsure how to do or if that should even be our concern (instead leaving it up to the user to supply appropriate bitmaps). Co-authored-by: Jonathan Grochowski <jon@grocho.net> Reviewed-on: https://codeberg.org/xmobar/xmobar/pulls/660 Co-authored-by: jgrocho <codeberg@jon.grocho.net> Co-committed-by: jgrocho <codeberg@jon.grocho.net>
2022-11-16cairo: recover pre-cairo z-ordering of segmentsjao
2022-11-16cairo: fix: don't draw outside maximum allowed offsetjao
2022-11-13similar take on centering the centerjao
2022-11-13center segment drawn in the center of the barjao
should make things better for #650 and #655
2022-11-08Fixes offset of the pseudo-transparent backgroundKostas Agnantis
2022-11-08Adds 'XPosition' type documentation and code fixes based on reviewKostas Agnantis
2022-11-06Adds new position configurationKostas Agnantis
- TopHM: Top position with left/right/top margins and specific height - BottomHM: Bottom position with left/right/bottom margins and specific height
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
2022-09-26more little import clean upsjao
2022-09-22import clean-upsjao
2022-09-21better abstracted icon drawing interfacejao
2022-09-21lintingjao
2022-09-20fix for -f-with_xrender buildcairojao
2022-09-20new namespace: Xmobar.Drawjao
2022-09-19wee refactoring (more types in X11.Types)jao
2022-09-19cairo: non-cairo is not an optionjao
2022-09-18fix for -f-with_xrender buildjao
2022-09-18qualified importsjao
2022-09-18whitespacejao
2022-09-16Fix for non-cairo buildjao
2022-09-16little clean-upsjao
2022-09-16cairo: outer boxes fixesjao
2022-09-16linting and version bumpjao
2022-09-15cairo: boxes as linesjao
2022-09-15cairo: boxes, take twojao