diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bottom.hs | 2 | ||||
-rw-r--r-- | src/lib/Config.hs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/Bottom.hs b/src/lib/Bottom.hs index 1c70548..4bd6614 100644 --- a/src/lib/Bottom.hs +++ b/src/lib/Bottom.hs @@ -65,7 +65,7 @@ brightness = Brightness ["--", "-D", "intel_backlight"] 10 memory = Memory ["-t","<available> M", "-p", "2"] 20 config cs p = (baseConfig p) { - position = BottomSize C 100 24 + position = BottomSize C 100 defaultHeight , textOffset = 17 , commands = [ Run (uptime p) , Run brightness diff --git a/src/lib/Config.hs b/src/lib/Config.hs index 94b9211..4ab805d 100644 --- a/src/lib/Config.hs +++ b/src/lib/Config.hs @@ -1,9 +1,12 @@ -module Config (Palette, baseConfig, palette, (<~>)) where +module Config (Palette, baseConfig, palette, (<~>), defaultHeight) where import System.Environment (lookupEnv) import Xmobar +defaultHeight :: Int +defaultHeight = 24 + data Palette = Palette { pNormal :: String , pLow :: String , pHigh :: String |