import Xmobar
import Config
import Monitors
-- 💡
config p = (baseConfig p) {
position = TopSize C 100 (defaultHeight - 1)
, textOffset = defaultHeight - 8
, textOffsets = [defaultHeight - 9, defaultHeight - 9,
defaultHeight - 6, defaultHeight - 8]
, iconOffset = 10
, border = BottomB
, alpha = 255
, commands = [ Run (topProc' p)
, Run (cpuBars p)
, Run memory
, Run (diskU p)
, Run (diskIO p)
-- , Run (coreTemp p)
, Run brightness'
, Run kbd
, Run (batt p)
, Run (wireless p "wlp1s0")
, Run (dynNetwork p)
, Run tun0
, Run (weather "EGPH") -- LEGE, LEBL, KCV0
, Run mail
, Run masterVol
, Run captureVol
, Run laTime
, Run localTime
]
, template = " |batt0| |bright|\
\ |tun0||wlp1s0wi| \
\ |dynnetwork| \
\ \
\|default:Master|\
\ |default:Capture| |EGPH|\
\ |mail| |kbd|{} \
\ |top| |multicpu|\
\ |diskio| |disku| |memory| \
\ 🕓 |datetime| |laTime| "
}
main :: IO ()
main =
palette >>= configFromArgs . config >>= xmobar