Solarized xmobar
This commit is contained in:
parent
b5bbcc6679
commit
7ae5c0ec3e
46
.xmobarrc
46
.xmobarrc
|
@ -2,8 +2,8 @@ Config {
|
||||||
|
|
||||||
-- Appearance
|
-- Appearance
|
||||||
font = "xft:OpenSans:size=10:antialias=true"
|
font = "xft:OpenSans:size=10:antialias=true"
|
||||||
, bgColor = "black"
|
, bgColor = "#073642"
|
||||||
, fgColor = "grey"
|
, fgColor = "#93a1a1"
|
||||||
, position = TopW L 90
|
, position = TopW L 90
|
||||||
|
|
||||||
-- Layout
|
-- Layout
|
||||||
|
@ -21,18 +21,18 @@ Config {
|
||||||
[ Run MultiCpu [ "--template" , "CPU: <total0>%|<total2>%"
|
[ Run MultiCpu [ "--template" , "CPU: <total0>%|<total2>%"
|
||||||
, "--Low" , "30" -- units: %
|
, "--Low" , "30" -- units: %
|
||||||
, "--High" , "70" -- units: %
|
, "--High" , "70" -- units: %
|
||||||
, "--low" , "lightblue"
|
, "--low" , "#2aa198"
|
||||||
, "--normal" , "green"
|
, "--normal" , "#859900"
|
||||||
, "--high" , "red"
|
, "--high" , "#dc322f"
|
||||||
] 10
|
] 10
|
||||||
|
|
||||||
-- cpu core temperature monitor
|
-- cpu core temperature monitor
|
||||||
, Run CoreTemp [ "--template" , "Temp: <core0>°C|<core1>°C"
|
, Run CoreTemp [ "--template" , "Temp: <core0>°C|<core1>°C"
|
||||||
, "--Low" , "30" -- units: °C
|
, "--Low" , "30" -- units: °C
|
||||||
, "--High" , "80" -- units: °C
|
, "--High" , "80" -- units: °C
|
||||||
, "--low" , "lightblue"
|
, "--low" , "#2aa198"
|
||||||
, "--normal" , "green"
|
, "--normal" , "#859900"
|
||||||
, "--high" , "red"
|
, "--high" , "#dc322f"
|
||||||
] 50
|
] 50
|
||||||
|
|
||||||
-- CPU Frequency
|
-- CPU Frequency
|
||||||
|
@ -43,26 +43,26 @@ Config {
|
||||||
, Run Memory [ "--template" , "MEM <usedratio>%"
|
, Run Memory [ "--template" , "MEM <usedratio>%"
|
||||||
, "--Low" , "20" -- units: %
|
, "--Low" , "20" -- units: %
|
||||||
, "--High" , "90" -- units: %
|
, "--High" , "90" -- units: %
|
||||||
, "--low" , "lightblue"
|
, "--low" , "#2aa198"
|
||||||
, "--normal" , "green"
|
, "--normal" , "#859900"
|
||||||
, "--high" , "red"
|
, "--high" , "#dc322f"
|
||||||
] 10
|
] 10
|
||||||
|
|
||||||
-- Battery Monitor
|
-- Battery Monitor
|
||||||
, Run Battery [ "--template" , "BAT: <acstatus>"
|
, Run Battery [ "--template" , "BAT: <acstatus>"
|
||||||
, "--Low" , "10" -- units: %
|
, "--Low" , "10" -- units: %
|
||||||
, "--High" , "80" -- units: %
|
, "--High" , "80" -- units: %
|
||||||
, "--low" , "red"
|
, "--low" , "#dc322f"
|
||||||
, "--normal" , "green"
|
, "--normal" , "#859900"
|
||||||
, "--high" , "lightblue"
|
, "--high" , "#2aa198"
|
||||||
|
|
||||||
, "--" -- battery specific options
|
, "--" -- battery specific options
|
||||||
-- discharging status
|
-- discharging status
|
||||||
, "-o" , "<left>% (<timeleft>)"
|
, "-o" , "<left>% (<timeleft>)"
|
||||||
-- AC "on" status
|
-- AC "on" status
|
||||||
, "-O" , "<fc=#FFA500>Charging</fc>"
|
, "-O" , "<fc=#2aa198>Charging</fc>"
|
||||||
-- charged status
|
-- charged status
|
||||||
, "-i" , "<fc=#ADD8E6>Charged</fc>"
|
, "-i" , "<fc=#859900>Charged</fc>"
|
||||||
] 50
|
] 50
|
||||||
|
|
||||||
-- Read from STDIN
|
-- Read from STDIN
|
||||||
|
@ -72,21 +72,21 @@ Config {
|
||||||
, Run Weather "YBRK" [ "--template" , " <tempC>°C"
|
, Run Weather "YBRK" [ "--template" , " <tempC>°C"
|
||||||
, "--Low" , "10"
|
, "--Low" , "10"
|
||||||
, "--High" , "35"
|
, "--High" , "35"
|
||||||
, "--low" , "lightblue"
|
, "--low" , "#2aa198"
|
||||||
, "--normal" , "green"
|
, "--normal" , "#859900"
|
||||||
, "--high" , "red"
|
, "--high" , "#dc322f"
|
||||||
] 36000
|
] 36000
|
||||||
|
|
||||||
-- Network Activity Monitor
|
-- Network Activity Monitor
|
||||||
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
, Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
|
||||||
, "--Low" , "1000" -- units: kB/s
|
, "--Low" , "1000" -- units: kB/s
|
||||||
, "--High" , "5000" -- units: kB/s
|
, "--High" , "5000" -- units: kB/s
|
||||||
, "--low" , "lightblue"
|
, "--low" , "#2aa198"
|
||||||
, "--normal" , "green"
|
, "--normal" , "#859900"
|
||||||
, "--high" , "red"
|
, "--high" , "#dc322f"
|
||||||
] 10
|
] 10
|
||||||
|
|
||||||
-- Time and Date Display
|
-- Time and Date Display
|
||||||
, Run Date "<fc=#ee9a00>%a %b %_d %H:%M</fc>" "date" 10
|
, Run Date "<fc=#268bd2>%a %b %_d %H:%M</fc>" "date" 10
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,10 @@ main = do
|
||||||
, layoutHook = avoidStruts $ layoutHook defaultConfig
|
, layoutHook = avoidStruts $ layoutHook defaultConfig
|
||||||
, logHook = dynamicLogWithPP $ xmobarPP
|
, logHook = dynamicLogWithPP $ xmobarPP
|
||||||
{ ppOutput = hPutStrLn xmproc
|
{ ppOutput = hPutStrLn xmproc
|
||||||
, ppTitle = xmobarColor "green" "" . shorten 50
|
, ppCurrent = xmobarColor "#859900" "" . wrap "[" "]"
|
||||||
|
, ppVisible = xmobarColor "#2aa198" "" . wrap "(" ")"
|
||||||
|
, ppLayout = xmobarColor "#2aa198" ""
|
||||||
|
, ppTitle = xmobarColor "#859900" "" . shorten 50
|
||||||
}
|
}
|
||||||
, modMask = mod4Mask -- Rebind Mod to the Windows key
|
, modMask = mod4Mask -- Rebind Mod to the Windows key
|
||||||
--, borderWidth = 1
|
--, borderWidth = 1
|
||||||
|
|
Loading…
Reference in a new issue