Skip to content

Instantly share code, notes, and snippets.

@jmcblane jmcblane/.xmobarrc
Created Apr 16, 2019

Embed
What would you like to do?
Config {
-- appearance
font = "xft:UbuntuMono Nerd Font:size=10:antialias=true"
, bgColor = "#3a3a3a"
, fgColor = "#acacab"
, position = Top
--, border = BottomB
, borderColor = "#2f2f2f"
-- layout
, sepChar = "%" -- delineator between plugin names and straight text
, alignSep = "}{" -- separator between left-right alignment
, template = "%StdinReader% }{ %battery% \\ %date% "
-- 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 StdinReader
, Run Battery [ "--template" , "Batt: <acstatus>"
, "--Low" , "20" -- units: %
, "--High" , "80" -- units: %
, "--low" , "#8f6f65"
, "--normal" , "#8f7a6f"
, "--high" , "#7a8f65"
, "--" -- battery specific options
-- discharging status
, "-o" , "<left>% (<timeleft>)"
-- AC "on" status
, "-O" , "<fc=#8f7a6f>Charging</fc>"
-- charged status
, "-i" , "<fc=#7a8f65>Charged</fc>"
] 50
-- time and date indicator
-- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
, Run Date "<fc=#ABABAB>%a %b %d, %I:%M</fc>" "date" 10
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.