summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorDaniel Schüssler <933504+DanielSchuessler@users.noreply.github.com>2018-08-25 23:57:07 +0200
committerDaniel Schüssler <933504+DanielSchuessler@users.noreply.github.com>2018-10-06 19:52:44 +0200
commit6d20569d5b9b7f7f408d9e05ee9aee370f9e58dc (patch)
tree38c23b7c7d8f41f6ad620238ada55c14ea7e68ca /xmobar.cabal
parenta6b2dfc9c9b76fd6a9ec22d71d03b27d9b7689bb (diff)
downloadxmobar-6d20569d5b9b7f7f408d9e05ee9aee370f9e58dc.tar.gz
xmobar-6d20569d5b9b7f7f408d9e05ee9aee370f9e58dc.tar.bz2
Add event-based refreshing for Volume plugin (--monitor option)
This uses alsactl monitor for push/event-based updating instead of polling.
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal13
1 files changed, 11 insertions, 2 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index cb8f63f..6306677 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -44,7 +44,8 @@ test-suite XmobarTest
Plugins.Monitors.Swap, Plugins.Monitors.Thermal,
Plugins.Monitors.ThermalZone, Plugins.Monitors.Top,
Plugins.Monitors.Uptime,
- Plugins.Monitors.Bright, Plugins.Monitors.CatInt
+ Plugins.Monitors.Bright, Plugins.Monitors.CatInt,
+ Plugins.Monitors.VolumeSpec
build-depends:
base >= 4.9.1.0 && < 4.13,
hspec == 2.*,
@@ -62,7 +63,15 @@ test-suite XmobarTest
mtl >= 2.1 && < 2.3,
parsec == 3.1.*,
parsec-numbers == 0.1.0,
- stm >= 2.3 && < 2.6
+ stm >= 2.3 && < 2.6,
+ temporary,
+ async
+
+ if flag(with_alsa) || flag(all_extensions)
+ build-depends: alsa-mixer > 0.2.0.2
+ build-depends: alsa-core == 0.5.*
+ other-modules: Plugins.Monitors.Volume
+ cpp-options: -DALSA
source-repository head
type: git