From 05554f239c79d738848f5453b16b8ad01e9a5f50 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Sun, 14 Sep 2014 14:28:26 +0400 Subject: Add iconRoot config option For all if path does not start with "/", "./", "../" it will have iconRoot ++ "/" prepended to it. --- src/Xmobar.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Xmobar.hs') diff --git a/src/Xmobar.hs b/src/Xmobar.hs index 91245e2..33feeb0 100644 --- a/src/Xmobar.hs +++ b/src/Xmobar.hs @@ -151,7 +151,7 @@ eventLoop tv xc@(XConf d r w fs is cfg) as signal = do case typ of Wakeup -> do str <- updateString cfg tv - xc' <- updateCache d w is str >>= \c -> return xc { iconS = c } + xc' <- updateCache d w is (iconRoot cfg) str >>= \c -> return xc { iconS = c } as' <- updateActions xc r str runX xc' $ drawInWin r str eventLoop tv xc' as' signal -- cgit v1.2.3