summaryrefslogtreecommitdiffhomepage
path: root/src/Top.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2018-12-10 01:36:46 +0000
committerjao <jao@gnu.org>2018-12-10 01:36:46 +0000
commit48c0e1ebcc0e6a7c9ae302f44c814508bfda7b6a (patch)
treed6a4ff080420e2e36fe1db68c51f4dfb30069169 /src/Top.hs
parent0b8f1901f6e955fb1f0f42b0b6b598bbf8a2ae12 (diff)
downloadxmobar-config-48c0e1ebcc0e6a7c9ae302f44c814508bfda7b6a.tar.gz
xmobar-config-48c0e1ebcc0e6a7c9ae302f44c814508bfda7b6a.tar.bz2
Using the new Xmobar.configFromArgs
Diffstat (limited to 'src/Top.hs')
-rw-r--r--src/Top.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Top.hs b/src/Top.hs
index 8a74ad5..5366268 100644
--- a/src/Top.hs
+++ b/src/Top.hs
@@ -23,7 +23,7 @@ dynNetwork p = DynNetwork (p <~> ["-t", "↑ <tx> ↓ <rx>"
config p = (baseConfig p) {
position = TopSize C 100 defaultHeight
- , textOffset = 16
+ , textOffset = defaultHeight - 8
, commands = [ Run (topProc p)
, Run (wireless p)
, Run (multiCPU p)
@@ -41,4 +41,5 @@ config p = (baseConfig p) {
}
main :: IO ()
-main = palette >>= xmobar . config
+main =
+ palette >>= configFromArgs . config >>= xmobar