Участник с: 06 февраля 2015
|
Что-то поломали братья после последнего обновления xmonad. Проблема в том, что xmobar ложно информирует о состоянии батареи. Т.е., она всегда "charged", даже в том случае когда полностью разряжена, о чём можно судить по мигающему светодиоду на панели бука. Так же, перестал отображаться процесс зарядки "charging". Есть тут кто подкованный по хаскелю, или лучше стучать разрабам??
┌─ tozen {Linux 4.7.0-1-ARCH x86_64} /home/tozen
08:19:26
└─> $ cat .xmobarrc
Config {
-- appearance
font = "xft:ubuntu:size=9:normal:antialias=true"
, additionalFonts = ["xft:Terminus:size=11:antialise=true:hinting=true"]
, bgColor = "#1c1c1c"
, fgColor = "#d2d4dc"
, position = Top
, alpha = 200
, border = BottomB
, borderColor = "#646464"
, textOffset = -1
, iconOffset = -1
, iconRoot = "."
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = " <fc=#3aa4db> | </fc> %battery% <fc=#3aa4db> | </fc> %coretemp% <fc=#3aa4db> | </fc> %memory% <fc=#3aa4db> | </fc> %dynnetwork% <fc=#3aa4db> | </fc> %multicpu% <fc=#3aa4db> | </fc> }{ <fc=#3aa4db> | </fc> %date% <fc=#3aa4db> | </fc> vol: %myVolume% <fc=#3aa4db> | </fc> "
-- general behavior
, lowerOnStart = True -- send to bottom of window stack on start
, hideOnStart = False -- start with window unmapped (hidden)
, allDesktops = True -- show on all desktops
, overrideRedirect = True -- set the Override Redirect flag (Xlib)
, pickBroadest = False -- choose widest display (multi-monitor)
, persistent = True -- enable/disable hiding (True = disabled)
-- plugins
-- Numbers can be automatically colored according to their value. xmobar
-- decides color based on a three-tier/two-cutoff system, controlled by
-- command options:
-- --Low sets the low cutoff
-- --High sets the high cutoff
--
-- --low sets the color below --Low cutoff
-- --normal sets the color between --Low and --High cutoffs
-- --High sets the color above --High cutoff
--
-- The --template option controls how the plugin is displayed. Text
-- color can be set by enclosing in <fc></fc> tags. For more details
-- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
, commands =
-- weather monitor
--[ Run Weather "EGNJ" [ "--template", "<fc=#3aa4db> | </fc> <fc=#d2d4dc>cndt : <skyCondition></fc> <fc=#3aa4db> | </fc> <fc=#d2d4dc>tmpt : <tempC> °C</fc> <fc=#3aa4db> | </fc><fc=#d2d4dc>hmdt : <rh>%</fc>"
-- ] 36000
-- network activity monitor (dynamic interface resolution)
[ Run DynNetwork [ "--template" , "net<fc=#d2d4dc> :</fc> up <tx>kB/s <fc=#d2d4dc>:</fc> down <rx>kB/s"
, "--Low" , "1000" -- units: kB/s
, "--High" , "5000" -- units: kB/s
, "--low" , "#d2d4dc"
, "--normal" , "#d2d4dc"
, "--high" , "#d2d4dc"
] 10
-- cpu activity monitor
, Run MultiCpu [ "--template" , "cpu<fc=#d2d4dc> : </fc><total0>% <fc=#d2d4dc>:</fc> <total1>%"
, "--Low" , "50" -- units: %
, "--High" , "85" -- units: %
, "--low" , "#d2d4dc"
, "--normal" , "#d2d4dc"
, "--high" , "#fd0537"
] 10
-- cpu core temperature monitor
, Run CoreTemp [ "--template" , "temp<fc=#d2d4dc> :</fc> <core0>°C<fc=#d2d4dc> : </fc><core1>°C"
, "--Low" , "70" -- units: °C
, "--High" , "80" -- units: °C
, "--low" , "#d2d4dc"
, "--normal" , "#d2d4dc"
, "--high" , "fd0537"
] 50
-- memory usage monitor
, Run Memory [ "--template" ,"mem<fc=#d2d4dc> :</fc> <usedratio>%"
, "--Low" , "20" -- units: %
, "--High" , "90" -- units: %
, "--low" , "#d2d4dc"
, "--normal" , "#d2d4dc"
, "--high" , "#fd0537"
] 10
-- battery monitor
, Run Battery [ "--template" , "batt<fc=#d2d4dc> :</fc> <acstatus>"
, "--Low" , "10" -- units: %
, "--High" , "80" -- units: %
, "--low" , "#fd0537"
, "--normal" , "#d2d4dc"
, "--high" , "#d2d4dc"
, "--" -- battery specific options
-- discharging status
, "-o" , "<left>% (<timeleft>)"
-- AC "on" status
, "-O" , "<fc=#d2d4dc>charging</fc>"
-- charged status
, "-i" , "<fc=#d2d4dc>charged</fc>"
] 50
-- volume monitor
, Run Com ".bin/getVolume" [] "myVolume" 10
-- wifi indicator
--, Run Com "/home/tozen/.bin/wireless.sh" [] "wifi" 30
--, Run Wireless [ "--template" , "<essid> <quality>"
-- ] 50
-- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "<fc=#d2d4dc>%F</fc> <fc=#d2d4dc></fc><fc=#52bf90>%a</fc><fc=#d2d4dc></fc> <fc=#d2d4dc>%T</fc>" "date" 10
-- keyboard layout indicator
--, Run Kbd [ ("UK)" , "<fc=#959499>DV</fc>")
-- , ("UK" , "<fc=#959499>US:</fc>")
-- ]
]
}
[/code]
|