]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/xmonad/xmobar.hs
firefox: enable globalprivacycontrol
[julm/julm-nix.git] / home-manager / profiles / xmonad / xmobar.hs
1 Config {
2 -- font = "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
3 font = "xft:DejaVu Sans Mono:pixelsize=9:antialias=true"
4 , bgColor = "black"
5 -- , fgColor = "#646464"
6 , fgColor = "#ffffff"
7 -- , position = Top
8 , position = OnScreen 0 (TopW L 90)
9 -- , border = BottomB
10 -- , borderColor = "#646464"
11 , sepChar = "%" -- delineator between plugin names and straight text
12 , alignSep = "}{" -- separator between left-right alignment
13 , template = "%StdinReader% }{ %multicpu% %thermal0% %memory% %dynnetwork% %battery% %kbd% %parisTime% "
14 , lowerOnStart = True -- send to bottom of window stack on start
15 , hideOnStart = False -- start with window unmapped (hidden)
16 , allDesktops = True -- show on all desktops
17 , overrideRedirect = True -- set the Override Redirect flag (Xlib)
18 , pickBroadest = False -- choose widest display (multi-monitor)
19 , persistent = True -- enable/disable hiding (True = disabled)
20 , commands =
21 [ Run StdinReader
22 , Run MultiCpu
23 [ "--template", "CPU:<autototal>%"
24 , "--Low", "50" -- units: %
25 , "--High", "85" -- units: %
26 , "--low", "green"
27 , "--normal", "orange"
28 , "--high", "red"
29 ] 10
30 , Run ThermalZone 0
31 [ "--template", "Temp:<temp>°C"
32 , "--Low", "70" -- units: °C
33 , "--High", "80" -- units: °C
34 , "--low", "green"
35 , "--normal", "orange"
36 , "--high", "red"
37 ] 30
38 , Run Memory
39 [ "--template","Mem:<usedratio>%"
40 , "--Low", "20" -- units: %
41 , "--High", "90" -- units: %
42 , "--low", "green"
43 , "--normal", "orange"
44 , "--high", "red"
45 ] 10
46 -- Note that reloading xmonad is needed (Win+End)
47 -- to detect network interfaces brought
48 -- after xmonad has started (eg. over USB).
49 , Run DynNetwork
50 [ "--template", "<dev>:Tx:<tx>|Rx:<rx>kB/s"
51 , "--Low", "20000" -- units: B/s
52 , "--High", "1000000" -- units: B/s
53 , "--low", "green"
54 , "--normal", "orange"
55 , "--high", "red"
56 ] 10
57 , Run Battery
58 [ "--template", "Batt:<acstatus>"
59 , "--Low", "20" -- units: %
60 , "--High", "80" -- units: %
61 , "--low", "red"
62 , "--normal", "orange"
63 , "--high", "green"
64 , "--" -- battery specific options
65 -- discharging status
66 , "-o", "<left>% (<timeleft>)"
67 -- AC "on" status
68 , "-O", "<fc=#dAA520>Charging</fc>"
69 -- charged status
70 , "-i", "<fc=green>Charged</fc>"
71 ] 50
72 , Run Kbd
73 [ ("fr", "Kbd:<fc=white>FR</fc>")
74 , ("us", "Kbd:<fc=white>US</fc>")
75 ]
76 , Run DateZone "%A %d %b %H:%M:%S" "fr_FR.UTF-8" "Europe/Paris" "parisTime" 1
77 ]
78 }