diff options
author | Alexander Shabalin <shabalyn.a@gmail.com> | 2014-09-14 14:28:26 +0400 |
---|---|---|
committer | Alexander Shabalin <shabalyn.a@gmail.com> | 2014-09-24 23:49:47 +0400 |
commit | 05554f239c79d738848f5453b16b8ad01e9a5f50 (patch) | |
tree | fba70a167596c7bbb8c668f9084e14e70b9ba1b7 /src/Config.hs | |
parent | 2215d77ff8ffb55cfd0c098a017a86ecf0620b05 (diff) | |
download | xmobar-05554f239c79d738848f5453b16b8ad01e9a5f50.tar.gz xmobar-05554f239c79d738848f5453b16b8ad01e9a5f50.tar.bz2 |
Add iconRoot config option
For all <icon=path/> if path does not start with "/", "./", "../"
it will have iconRoot ++ "/" prepended to it.
Diffstat (limited to 'src/Config.hs')
-rw-r--r-- | src/Config.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Config.hs b/src/Config.hs index e7c25ad..3514e50 100644 --- a/src/Config.hs +++ b/src/Config.hs @@ -67,6 +67,7 @@ data Config = -- window stack on initialization , persistent :: Bool -- ^ Whether automatic hiding should -- be enabled or disabled + , iconRoot :: FilePath -- ^ Root folder for icons , commands :: [Runnable] -- ^ For setting the command, -- the command arguments -- and refresh rate for the programs @@ -118,6 +119,7 @@ defaultConfig = , allDesktops = True , overrideRedirect = True , pickBroadest = False + , iconRoot = "." , commands = [ Run $ Date "%a %b %_d %Y * %H:%M:%S" "theDate" 10 , Run StdinReader] , sepChar = "%" |