ENH improve sound latency

This commit is contained in:
Nathan Dwarshuis 2020-05-31 23:58:30 -04:00
parent 4f14e11ae5
commit 0e635263e9
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ soundDir = "sound"
spawnSound :: FilePath -> X ()
spawnSound file = do
path <- (</> soundDir </> file) <$> getXMonadDir
spawnCmd "aplay" [path]
-- paplay seems to have less latency than aplay
spawnCmd "paplay" [path]
--------------------------------------------------------------------------------
-- | Formatting commands