continue working on status bar a bit meow
This commit is contained in:
parent
a61e097fd8
commit
09c6f7c8b2
1 changed files with 19 additions and 2 deletions
|
@ -1,5 +1,22 @@
|
||||||
import Xmobar
|
import Xmobar
|
||||||
|
|
||||||
|
-- TODOS:
|
||||||
|
-- - custom cpu module
|
||||||
|
-- - custom mem module
|
||||||
|
-- - custom network/ping module with avg of n pings and blah
|
||||||
|
-- - custom graph rendering based on braille characters
|
||||||
|
-- - custom "ramp" thingies
|
||||||
|
-- - newsticker?
|
||||||
|
-- - mail/message monitoring
|
||||||
|
-- - if possible, different bars per workspace
|
||||||
|
|
||||||
|
data CustomCpu = CustomCpu
|
||||||
|
deriving (Read, Show)
|
||||||
|
|
||||||
|
instance Exec CustomCpu where
|
||||||
|
alias CustomCpu = "cpu"
|
||||||
|
run CustomCpu = return "meow"
|
||||||
|
|
||||||
fc code content = "<fc=" ++ code ++ ">" ++ content ++ "</fc>"
|
fc code content = "<fc=" ++ code ++ ">" ++ content ++ "</fc>"
|
||||||
|
|
||||||
sep = fc "#7c6f64"
|
sep = fc "#7c6f64"
|
||||||
|
@ -15,10 +32,10 @@ config =
|
||||||
fgColor = "#ebdbb2",
|
fgColor = "#ebdbb2",
|
||||||
commands =
|
commands =
|
||||||
[ Run $ Memory ["t", "Mem: <usedratio>%"] 10,
|
[ Run $ Memory ["t", "Mem: <usedratio>%"] 10,
|
||||||
Run $ Kbd [],
|
Run $ CustomCpu,
|
||||||
Run $ Date (icon "\983277" ++ " %Y" ++ sep "-" ++ "%m" ++ sep "-" ++ "%d " ++ icon "\988236" ++ " %H" ++ sep ":" ++ "%M" ++ sep ":" ++ "%S ") "date" 10
|
Run $ Date (icon "\983277" ++ " %Y" ++ sep "-" ++ "%m" ++ sep "-" ++ "%d " ++ icon "\988236" ++ " %H" ++ sep ":" ++ "%M" ++ sep ":" ++ "%S ") "date" 10
|
||||||
],
|
],
|
||||||
template = "}{ %date%",
|
template = "%memory% }{ %cpu% }{ %date%",
|
||||||
alignSep = "}{",
|
alignSep = "}{",
|
||||||
position = TopH 24
|
position = TopH 24
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue