Skip to content

Commit

Permalink
we need maxVol for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bach committed Jan 10, 2015
1 parent db7e0ea commit d258e9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .xmonad/Pulse.hs
Expand Up @@ -30,14 +30,16 @@ changeVolumePercent n p = p {sinkVolume = newVolume}
changed = sinkVolume p + change
change = (maxVol * n) `div` 100
minVol = 0
maxVol = readHex "10000"

raiseVolumePercent :: Int -> PulseItem -> PulseItem
raiseVolumePercent = changeVolumePercent

lowerVolumePercent :: Int -> PulseItem -> PulseItem
lowerVolumePercent n = changeVolumePercent (-n)

maxVol :: (Num a, Read a) => a
maxVol = readHex "10000"

-- Higher Level Commands

paDumpSinks :: (MonadIO m, Functor m) => m [PulseItem]
Expand Down

0 comments on commit d258e9b

Please sign in to comment.