]> Git — Sourcephile - julm/julm-nix.git/blob - homes/softwares/xmonad/xmobar.hs
julm: neovim: re-enable
[julm/julm-nix.git] / homes / softwares / 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 , Run DynNetwork
47 [ "--template", "<dev>:Tx:<tx>|Rx:<rx>kB/s"
48 , "--Low", "20000" -- units: B/s
49 , "--High", "1000000" -- units: B/s
50 , "--low", "green"
51 , "--normal", "orange"
52 , "--high", "red"
53 ] 10
54 , Run Battery
55 [ "--template", "Batt:<acstatus>"
56 , "--Low", "20" -- units: %
57 , "--High", "80" -- units: %
58 , "--low", "red"
59 , "--normal", "orange"
60 , "--high", "green"
61 , "--" -- battery specific options
62 -- discharging status
63 , "-o", "<left>% (<timeleft>)"
64 -- AC "on" status
65 , "-O", "<fc=#dAA520>Charging</fc>"
66 -- charged status
67 , "-i", "<fc=green>Charged</fc>"
68 ] 50
69 , Run Kbd
70 [ ("fr", "Kbd:<fc=white>FR</fc>")
71 , ("us", "Kbd:<fc=white>US</fc>")
72 ]
73 , Run DateZone "%A %d %b %H:%M:%S" "fr_FR.UTF-8" "Europe/Paris" "parisTime" 1
74 ]
75 }