diff options
Diffstat (limited to 'xmobar.cabal')
-rw-r--r-- | xmobar.cabal | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmobar.cabal b/xmobar.cabal index e5ee507..343570d 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -53,6 +53,10 @@ flag all_extensions description: Includes all optional extensions. default: False +flag with_alsa + description: Use alsa-mixer to get the volume from soundcards. + default: False + executable xmobar hs-source-dirs: src main-is: Main.hs @@ -109,3 +113,8 @@ executable xmobar build-depends: libmpd >= 0.5 other-modules: Plugins.Monitors.MPD cpp-options: -DLIBMPD + + if flag(with_alsa) || flag(all_extensions) + build-depends: alsa-mixer == 0.1.* + other-modules: Plugins.Monitors.Volume + cpp-options: -DALSA |