-
Notifications
You must be signed in to change notification settings - Fork 0
/
.xmobarrc
executable file
·49 lines (48 loc) · 2.92 KB
/
.xmobarrc
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
-- To build a modern xmobar from cabal:
-- sudo apt-get install cabal-install
-- sudo apt-get install libghc-libxml-sax-dev
-- sudo apt-get install c2hs
-- sudo apt-get install libiw-dev
-- sudo apt-get install libxpm-dev
-- sudo apt-get install libasound2-dev
-- cabal install xmobar --flags="all_extensions"
-- The xft font renders non vertically centered on the bar, ugly. Xlfd (the one with -*-*-...) works better.
Config { font = "xft:terminus-9:size=9,Symbola:size=9"
, bgColor = "grey15"
, fgColor = "#8e5825"
-- , alpha = 0 -- alpha does not work with background color under characters. It's also hard to make readable for several wallpapers.
, position = TopW L 100
, lowerOnStart = True -- To make toggle strut display windows above xmobar
, hideOnStart = False
, allDesktops = False
, border = NoBorder -- BottomBM 1
, commands = [ Run Cpu ["-t","Cpu <total>%","-L","3","-H","50","--normal","#547D5D","--high","coral3", "-w", "2" ] 10
--, Run Weather "ESGP" ["-t"," <tempC>°C","-L","0","-H","25","--normal","#547D5D","--high","coral3","--low","cadetblue3"] 36000
, Run Battery [ "--template" , "Batt: <acstatus>"
, "--Low" , "10" -- units: %
, "--High" , "80" -- units: %
, "--low" , "darkorange"
, "--normal" , "#8e5825"
, "--high" , "#547D5D"
, "--" -- battery specific options
-- status location
, "-f" , "AC0/online"
-- discharging status
, "-o" , "<left>% (<timeleft>)"
-- AC "on" status
, "-O" , "<fc=#547D5D>AC</fc> (<left>%)"
-- charged status
, "-i" , "<fc=#547D5D>AC</fc> (max)"
] 50
, Run Memory ["-t","Mem <usedratio>%", "-w", "3" ] 10
, Run Date "%a %_d %b %H:%M" "date" 10
, Run StdinReader
--, Run Kbd [("se", "SE"), ("us", "US")]
, Run Com "/home/gauthier/.xmonad/trayer-padding-icon.sh" [] "trayerpad" 10
]
, sepChar = "%"
, alignSep = "}{"
--, template = "%StdinReader% }{ <fc=#f09f52>|</fc> %battery% · %cpu% · %memory% · <fc=#f09f52>%date%</fc> · %kbd% <fc=#f09f52>|</fc> %trayerpad%"
-- Removing keyboard layout since currently using single layout with two groups (and investigating why xmobar crashes and freezes).
, template = "%StdinReader% }{ | %battery% · %cpu% · %memory% · <fc=#f09f52>%date%</fc> | %trayerpad%"
}