From 0e635263e9b8c64e24d91304e44541ada3720d51 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 31 May 2020 23:58:30 -0400 Subject: [PATCH] ENH improve sound latency --- lib/XMonad/Internal/Shell.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/XMonad/Internal/Shell.hs b/lib/XMonad/Internal/Shell.hs index 1434643..b198115 100644 --- a/lib/XMonad/Internal/Shell.hs +++ b/lib/XMonad/Internal/Shell.hs @@ -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