diff options
author | Dhananjay Balan <mail@dbalan.in> | 2020-01-04 18:36:39 +0530 |
---|---|---|
committer | Dhananjay Balan <mail@dbalan.in> | 2020-01-06 09:30:55 +0530 |
commit | 32cf7ca740c891804de7b105d9b048772e2fc226 (patch) | |
tree | 41f641050d798e73ebee509d5acc998248ad28c8 /xmobar.cabal | |
parent | bd22f1a2744ba331586f9161f833e7e3b7503b50 (diff) | |
download | xmobar-32cf7ca740c891804de7b105d9b048772e2fc226.tar.gz xmobar-32cf7ca740c891804de7b105d9b048772e2fc226.tar.bz2 |
Support for freebsd battery status:
Exposed via -f with_freebsd flag, uses sysctl to query battery status.
Diffstat (limited to 'xmobar.cabal')
-rw-r--r-- | xmobar.cabal | 7 |
1 files changed, 7 insertions, 0 deletions
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 |