diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-06-19 10:59:10 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-06-19 10:59:10 +0200 |
commit | df69b2a47709c7c6d608e7e91f0130e431db00a5 (patch) | |
tree | c4ebc0337fb9d32352c32078c5490002953b655b /accounts/gkleen@sif/taffybar | |
parent | 62f748a78fa5cbc52bb3e1432082a1b2b8250f2a (diff) | |
download | nixos-df69b2a47709c7c6d608e7e91f0130e431db00a5.tar nixos-df69b2a47709c7c6d608e7e91f0130e431db00a5.tar.gz nixos-df69b2a47709c7c6d608e7e91f0130e431db00a5.tar.bz2 nixos-df69b2a47709c7c6d608e7e91f0130e431db00a5.tar.xz nixos-df69b2a47709c7c6d608e7e91f0130e431db00a5.zip |
...
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 |