From 32cf7ca740c891804de7b105d9b048772e2fc226 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Sat, 4 Jan 2020 18:36:39 +0530 Subject: Support for freebsd battery status: Exposed via -f with_freebsd flag, uses sysctl to query battery status. --- xmobar.cabal | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmobar.cabal') diff --git a/xmobar.cabal b/xmobar.cabal index 7a2608a..dabead7 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -87,6 +87,10 @@ flag with_weather description: Enable weather plugin. default: True +flag with_freebsd + description: Enable FreeBSD support. + default: False + library hs-source-dirs: src @@ -257,6 +261,9 @@ library build-depends: http-conduit, http-types cpp-options: -DUVMETER + if flag(with_freebsd) + build-depends: bsd-sysctl + cpp-options: -DFREEBSD executable xmobar hs-source-dirs: app main-is: Main.hs -- cgit v1.2.3