From f81a7cfef463907ba4b68cb1352a869960350685 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 9 Sep 2022 03:03:57 +0100 Subject: cairo: drawing skeleton from an xlib cairo surface --- xmobar.cabal | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 55c27e8..6601a97 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -36,6 +36,10 @@ flag with_xft description: Use Xft to render text. UTF-8 support included. default: False +flag with_cairo + description: Use Cairo and Pango to render text, instead of Xft. UTF-8 support included. + default: False + flag with_inotify description: inotify support (modern Linux only). Required for the Mail and MBox plugins. default: False @@ -141,6 +145,7 @@ library Xmobar.X11.ColorCache, Xmobar.X11.Window, Xmobar.X11.Draw, + Xmobar.X11.XlibDraw, Xmobar.Plugins.Command, Xmobar.Plugins.BufferedPipeReader, Xmobar.Plugins.CommandReader, @@ -230,6 +235,12 @@ library other-modules: Xmobar.X11.MinXft cpp-options: -DXFT + if flag(with_cairo) + build-depends: gi-cairo-render >= 0.1.1 && < 0.2 + other-modules: Xmobar.X11.CairoSurface, Xmobar.X11.CairoDraw + x-c2hs-header: xmobar-gtk2hs.h + cpp-options: -DCAIRO + if flag(with_inotify) || flag(all_extensions) build-depends: hinotify >= 0.3 && < 0.5 other-modules: Xmobar.Plugins.Mail, Xmobar.Plugins.MBox -- cgit v1.2.3