FIX depend on pulseaudio and not libpulse

This commit is contained in:
Nathan Dwarshuis 2022-08-08 15:00:07 -04:00
parent aef5983e30
commit 825c7fbe45
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,9 @@ featureSound n file pre post =
sometimesIO_ ("volume " ++ n ++ " control") "paplay" tree
$ pre >> playSound file >> post
where
tree = Only_ $ sysExe [Package Official "libpulse"] "paplay"
-- ASSUME pulseaudio pulls in libpulse as a dep; pulseaudio itself is needed
-- to play sound (duh) but libpulse is the package with the paplay binary
tree = Only_ $ sysExe [Package Official "pulseaudio"] "paplay"
runVolumeDown :: SometimesX
runVolumeDown = featureSound "up" volumeChangeSound (return ()) $ void (lowerVolume 2)