diff options
Diffstat (limited to 'accounts/gkleen@sif/taffybar')
-rw-r--r-- | accounts/gkleen@sif/taffybar/gkleen-sif-taffybar.cabal | 1 | ||||
-rw-r--r-- | accounts/gkleen@sif/taffybar/src/taffybar.hs | 11 |
2 files changed, 9 insertions, 3 deletions
diff --git a/accounts/gkleen@sif/taffybar/gkleen-sif-taffybar.cabal b/accounts/gkleen@sif/taffybar/gkleen-sif-taffybar.cabal index 7f56dece..e32cb473 100644 --- a/accounts/gkleen@sif/taffybar/gkleen-sif-taffybar.cabal +++ b/accounts/gkleen@sif/taffybar/gkleen-sif-taffybar.cabal | |||
@@ -22,6 +22,7 @@ executable taffybar | |||
22 | , text | 22 | , text |
23 | , HStringTemplate | 23 | , HStringTemplate |
24 | , gtk-sni-tray | 24 | , gtk-sni-tray |
25 | , hslogger | ||
25 | other-modules: Paths_gkleen_sif_taffybar | 26 | other-modules: Paths_gkleen_sif_taffybar |
26 | , System.Taffybar.Widget.Clock | 27 | , System.Taffybar.Widget.Clock |
27 | , System.Taffybar.Widget.TooltipBattery | 28 | , System.Taffybar.Widget.TooltipBattery |
diff --git a/accounts/gkleen@sif/taffybar/src/taffybar.hs b/accounts/gkleen@sif/taffybar/src/taffybar.hs index 7dbb5c8e..13585c55 100644 --- a/accounts/gkleen@sif/taffybar/src/taffybar.hs +++ b/accounts/gkleen@sif/taffybar/src/taffybar.hs | |||
@@ -21,15 +21,20 @@ import Control.Monad.Trans.Reader (mapReaderT) | |||
21 | 21 | ||
22 | import Paths_gkleen_sif_taffybar | 22 | import Paths_gkleen_sif_taffybar |
23 | 23 | ||
24 | import System.Log.Logger | ||
25 | |||
24 | 26 | ||
25 | main :: IO () | 27 | main :: IO () |
26 | main = do | 28 | main = do |
29 | logger <- getLogger "System.Taffybar" | ||
30 | saveGlobalLogger $ setLevel INFO logger | ||
31 | |||
27 | myCssPath <- getDataFileName "taffybar.css" | 32 | myCssPath <- getDataFileName "taffybar.css" |
28 | startTaffybar exampleTaffybarConfig{ cssPath = Just myCssPath } | 33 | startTaffybar taffybarConfig{ cssPath = Just myCssPath } |
29 | 34 | ||
30 | 35 | ||
31 | exampleTaffybarConfig :: TaffybarConfig | 36 | taffybarConfig :: TaffybarConfig |
32 | exampleTaffybarConfig = | 37 | taffybarConfig = |
33 | let myWorkspacesConfig = | 38 | let myWorkspacesConfig = |
34 | defaultWorkspacesConfig | 39 | defaultWorkspacesConfig |
35 | { maxIcons = Just 0 | 40 | { maxIcons = Just 0 |