summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Config/Types.hs
AgeCommit message (Collapse)Author
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-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-09-30Run.Parsers -> Config.Templatejao
2022-09-18qualified importsjao
2022-09-16little clean-upsjao
2022-09-11cairo: lintingjao
2022-09-10cairo: fonts, offsets, colors, actionsjao
2022-02-06swaybar-protocol: very basic formatjao
2022-02-03TextOutputColor -> TextOutputFormatjao
Thinking of eventually adding a Sway JSON output, or simply add fonts to Pango specification, so it's more than colors. Also, NoColors -> Plain.
2022-01-31Text output: support choosing between Pango and ANSI markupPavel Kalugin
Signed-off-by: Pavel Kalugin <pavel@pavelthebest.me>
2022-01-29Color escape sequences for text outputjao
2022-01-29Basic text output, without colors, workingjao
2021-11-07Add details to error message regarding purpose of `signal` field.John Soo
2021-11-07Fail when reading a SignalChan, parse signal from defaultConfig.John Soo
* Address code review comments on ipc-improvements.
2021-11-07Let xmobar be used with a signal TMVar when used from other haskell.John Soo
2021-07-12Add TopH and BottomH for only controlling height of the window. (#556)Joan MIlev
2021-05-22Add show instances for several types so that configs can be generated ↵Ryan Trinkle
programmatically
2018-11-30Self-compilation a la xmonadjao
2018-11-25Xmobar.App.Defaults and Xmobar.Config.Typesjao