Created
July 22, 2017 09:02
-
-
Save ruanyf/a640a98d41383387d3a6401796f54710 to your computer and use it in GitHub Desktop.
我现在使用的 .xmobarrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*" | |
, additionalFonts = [] | |
, borderColor = "black" | |
, border = TopB | |
, bgColor = "black" | |
, fgColor = "grey" | |
, position = Top | |
, textOffset = -1 | |
, iconOffset = -1 | |
, alpha = 255 | |
, lowerOnStart = False | |
, hideOnStart = False | |
, pickBroadest = False | |
, persistent = False | |
, iconRoot = "." | |
, allDesktops = True | |
, overrideRedirect = True | |
, commands = [ Run Weather "ZSPD" ["-t","<station>: <tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000 | |
, Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10 | |
, Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10 | |
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 | |
, 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 | |
, Run Memory ["-t","Mem: <usedratio>%"] 10 | |
, Run Swap [ ] 10 | |
, Run Date "%a %b %_d %Y %H:%M:%S" "date" 10 | |
, Run StdinReader | |
] | |
, sepChar = "%" | |
, alignSep = "}{" | |
, template = "%StdinReader% | %cpu% | %memory% * %swap% | %eth0% - %eth1% }{ %ZSPD% | <fc=#ee9a00>%date%</fc> | %battery% | %uname% " | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment