123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- Config { font = "-misc-fixed-*-*-*-*-17-*-*-*-*-*-*-*"
- , lowerOnStart = False
- , bgColor = "black"
- , fgColor = "grey"
- , borderColor = "black"
- -- , border = TopB
- --, position = Top --W L 100
- -- Position xmobar along the top, with a stalonetray in the top right.
- -- Add right padding to xmobar to ensure stalonetray and xmobar don't
- -- overlap. stalonetrayrc-single is configured for 12 icons, each 23px
- -- wide.
- -- right_padding = num_icons * icon_size
- -- right_padding = 12 * 23 = 276
- -- Example: position = TopP 0 276 / left padding : TopP 276 0
- , position = TopP 0 200
- , persistent = True
- --, position = Static { xpos = 0, ypos = 0, width = 1346, height = 20 },
- -- commands
- , commands = [ Run Weather "FRXX0019" ["-t","<tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000
- -- network activity monitor (dynamic interface resolution)
- --
- , Run Network "enp55s0u2u4" [ "--template", "<dev>: ↓<rx>↑<tx>", "-S","True", "-L","1000","-H","5000","--low","darkgreen","--normal","darkorange","--high","darkred"] 20
- , Run Network "wlo1" [ "--template", "<dev>: ↓<rx>↑<tx>", "-S","True", "-L","1000","-H","5000","--low","darkgreen","--normal","darkorange","--high","darkred"] 20
- -- dynamic (alternate between enp55s0u2u4 and wlo1)
- , Run DynNetwork [ "--template" , "<dev>: ↓<rx> ↑<tx>"
- , "-S", "True"
- , "--Low" , "1000" -- units: B/s
- , "--High" , "5000" -- units: B/s
- , "--low" , "darkgreen"
- , "--normal" , "darkorange"
- , "--high" , "darkred"
- ] 20
- -- wireless essid
- , Run Wireless "wlo1" [ "--template", "<essid>" ] 20
- -- cpu activity monitor
- --%cpu%
- --, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
- -- %multicpu%
- , Run MultiCpu [ "--template" , "Cpu: <total0>%/<total1>%/<total2>%/<total3>%<total4>%/<total5>%/<total6>%/<total7>%"
- , "--Low" , "50" -- units: %
- , "--High" , "85" -- units: %
- , "--low" , "darkgreen"
- , "--normal" , "darkorange"
- , "--high" , "darkred"
- ] 10
- -- cpu core temperature monitor
- -- %coretemp%
- -- , Run CoreTemp [ "--template" , "T°C: <core0>/<core1>/<core2>"
- -- , "--Low" , "70" -- units: °C
- -- , "--High" , "80" -- units: °C
- -- , "--low" , "darkgreen"
- -- , "--normal" , "darkorange"
- -- , "--high" , "darkred"
- -- ] 50
- -- memory usage monitor
- --, Run Memory ["-t","Mem: <usedratio>%"] 10
- , Run Memory [ "--template" ,"Mem: <usedratio>%"
- , "--Low" , "20" -- units: %
- , "--High" , "90" -- units: %
- , "--low" , "darkgreen"
- , "--normal" , "darkorange"
- , "--high" , "darkred"
- ] 10
- , Run Swap [] 10
- , Run Com "uname" ["-s","-r"] "" 36000
- -- time and date indicator
- -- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
- , Run Date "%a %d/%m/%Y %T" "date" 10
- -- battery monitor
- , Run Battery [ "--template" , "Batt: <acstatus>"
- , "--Low" , "10" -- units: %
- , "--High" , "80" -- units: %
- , "--low" , "darkred"
- , "--normal" , "darkorange"
- , "--high" , "darkgreen"
- , "--" -- battery specific options
- -- discharging status
- , "-o" , "<left>% (<timeleft>)"
- -- AC "on" status
- , "-O" , "<fc=#dAA520>Charging</fc>"
- -- charged status
- , "-i" , "<fc=#006000>Charged</fc>"
- ] 50
- -- keyboard layout indicator
- --, Run Kbd [ ("bépo" , "<fc=#00008B>BÉ</fc>")
- -- , ("us" , "<fc=#8B0000>US</fc>")
- -- , ("fr" , "<fc=#8B0000>FR</fc>")
- -- , ("gb" , "<fc=#8B0000>UK</fc>")
- -- ]
- , Run StdinReader
- ]
- --layout
- , sepChar = "%"
- , alignSep = "}{"
- , template = "<fc=yellow>%date%</fc> <fc=red>|</fc> %battery% <fc=red>|</fc> %StdinReader%}{%enp55s0u2u4% - %wlo1%(%wlo1wi%) <fc=red>|</fc> %memory% * %swap% <fc=red>|</fc> %multicpu%"
- }
|