/
xmobarrc0
executable file
·57 lines (47 loc) · 2.25 KB
/
xmobarrc0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- http://projects.haskell.org/xmobar/
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
-- you can find weather location codes here: http://weather.noaa.gov/index.html
Config { font = "xft:JetBrainsMono Nerd Font:pixelsize=14:antialias=true:hinting=true"
, additionalFonts = [ "xft:monospace:pixelsize=15" ]
, bgColor = "#282A36"
, fgColor = "#B45BCF"
, position = Top
, lowerOnStart = True
, hideOnStart = False
, allDesktops = True
, persistent = True
, iconRoot = "~/.xmonad/xpm/" -- default: "."
, commands = [
-- Time and date
Run Date "\xf133 %b %d %Y (%H:%M)" "date" 50
-- Network up and down
, Run Network "wlp0s20f3" ["-t", "\xf0aa <rx>kb \xf0ab <tx>kb"] 20
-- Cpu usage in percent
, Run Cpu ["-t", "\xf108 cpu: (<total>%)","-H","50","--high","red"] 20
-- Ram used number and percent
, Run Memory ["-t", "\xf233 mem: <used>M (<usedratio>%)"] 20
-- Disk space free
, Run DiskU [("/home", "\xf0c7 hdd: <free> free")] [] 60
-- Battery
, Run Battery [
"--Low" , "20" -- units: %
, "--High" , "80" -- units: %
, "--low" , "darkred"
, "--normal" , "green"
, "--high" , "green"
, "--" -- battery specific options
-- discharging status
, "-o" , "<left>% (<timeleft>)"
-- AC "on" status
, "-O" , "<fc=#dAA520>Charging</fc>"
-- charged status
, "-i" , "<fc=#006000>Charged</fc>"
] 50
-- Runs a standard shell command 'uname -r' to get kernel version
, Run Com "uname" ["-r"] "" 36000
, Run UnsafeStdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#b3afc2> %uname% </fc> <fc=#666666>| </fc><fc=#FFB86C>%cpu% </fc><fc=#666666>| </fc><fc=#F69317>%memory% </fc><fc=#666666>| </fc><fc=#82AAFF>%disku% </fc><fc=#666666>| </fc><fc=#c3e88d>%wlp0s20f3% </fc><fc=#666666>| </fc><fc=#e1acff>| </fc><fc=#8BE9FD>%date%</fc> | <fc=#FF5555> %battery%</fc> | "
}