Skip to content

Instantly share code, notes, and snippets.

@fehu
Last active August 14, 2018 18:00
Show Gist options
  • Save fehu/4a091f09387f2166d70fbf220d7955bd to your computer and use it in GitHub Desktop.
Save fehu/4a091f09387f2166d70fbf220d7955bd to your computer and use it in GitHub Desktop.
xmobar config
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
, additionalFonts = []
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
, alpha = 255
, position = TopW L 100
, textOffset = -1
, iconOffset = -1
, lowerOnStart = True
, pickBroadest = False
, persistent = False
, hideOnStart = False
, iconRoot = "."
, allDesktops = True
, overrideRedirect = True
, commands = [ Run Network "wlp2s0" ["-L","0","-H","32",
"--normal","green",
"--high","red",
"-S", "True",
"-t", "<rx>|<tx>"
] 10
, Run Wireless "wlp2s0" ["-L","20","-H","70",
"--high","green",
"--normal", "orange",
"--low","red",
"-t", "<fc=blue><essid>:</fc> <qualitybar>"
] 10
, Run Cpu ["-L","3","-H","50",
"--normal","green",
"--high","red"
] 10
, Run Memory ["-L", "20", "-H", "80",
"--low", "green",
"--normal", "orange",
"--high", "red",
"-t","Mem: <usedratio>%"
] 10
, Run Swap [] 10
, Run Com "uname" ["-n"] "" 36000
, Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
, Run BatteryP ["BAT0"]
[ "-t", "<acstatus>"
, "-L", "20", "-H", "80"
, "-l", "red", "-h", "green"
, "--", "-O", "Charging: <left>%"
, "-o", "Battery: <left>%"
, "-i", "<fc=green>Fully Charged</fc>"
] 10
, Run ThermalZone 0 [] 30
, Run ThermalZone 1 [] 30
, Run Volume "default" "Master" [] 10
, Run Kbd [ ("us(altgr-intl)", "US")
, ("ru", "RU")
]
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = " %StdinReader%\
\ | %cpu%\
\ | %thermal0% %thermal1%\
\ | %memory% * %swap%\
\ | %wlp2s0wi% %wlp2s0%\
\ }{\
\ <fc=#ee9a00>%date%</fc>\
\ | %uname%\
\ | %default:Master%\
\ | <fc=#8080ff>%kbd%</fc>\
\ | %battery%"
}
@fehu
Copy link
Author

fehu commented Apr 30, 2018

Install with all the extensions enabled:

cabal install xmobar --flags="all_extensions"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment