yambar(5)
π NAME π
okay bestie, welcome to yambar(5) from the File Formats Manual β this is the manual page for the yambar configuration file, and it's giving iconic setup-doc energy fr fr π
β¨ DESCRIPTION β¨
A yambar configuration file is a yaml formatted document containing an associative array named bar. You may define other top-level entities and reference them using anchors β yes, anchors, the little YAML besties that let you reuse stuff without copy-pasting like a menace π«Ά
Besides the normal yaml types, there are a couple of yambar specific types that are frequently used:
- font β this is a comma separated list of fonts in fontconfig format. Example of valid values:
Font Awesome 6 BrandsFont Awesome 6 Free:style=solidDina:pixelsize=10:slant=italicDina:pixelsize=10:weight=bold
- color β an rgba hexstring;
RRGGBBAA. Examples:ffffffff: white, no transparency000000ff: black, no transparency00ff00ff: green, no transparencyff000099: red, semi-transparent
Like, the color format is literally RRGGBBAA, so the last two characters are the transparency vibe β no cap, that detail matters πβ¨
β¨ FORMAT β¨
okay bestie, this is the whole top-level lineup for your bar config β like the main character settings that control the entire vibe π every single one is right here, no skips, no cap.
height(int, required) β how tall your bar is, in pixels. and ngl, this does not include the border, the border is extra πlocation(enum, required) β where the bar lives. one oftoporbottom, pick your fighterbackground(color, required) β the background color, literally the canvas of your bar β¨monitor(string, optional) β which monitor to place the bar on. if you don't specify, the primary monitor gets it π₯οΈlayer(string, optional) β which layer to put the bar on. one ofoverlay,top,bottomorbackground. Wayland only. default:bottom.left-spacing(int, optional) β space, in pixels, added before each moduleright-spacing(int, optional) β space, in pixels, added after each modulespacing(int, optional) β the short-hand for setting bothleft-spacingandright-spacingat once. efficiency queen πleft-margin(int, optional) β left-side margin, in pixelsright-margin(int, optional) β right-side margin, in pixelsmargin(int, optional) β short-hand for setting bothleft-marginandright-margintogetherborder(associative array, optional) β configures the border around the status bar. it's giving frame energy πΌοΈ and it's got its own lil' crew of keys:border.left-width(int, optional) β width of the border on the left side, in pixelsborder.right-width(int, optional) β width of the border on the right side, in pixelsborder.top-width(int, optional) β width of the border on the top side, in pixelsborder.bottom-width(int, optional) β width of the border on the bottom side, in pixelsborder.width(int, optional) β short-hand that setsborder.left/right/top/bottom-widthall in one goborder.color(color, optional) β the color of the border πborder.left-margin(int, optional) β left-side margin, in pixels, from screen edge to barborder.right-margin(int, optional) β right-side margin, in pixels, from screen edge to barborder.top-margin(int, optional) β top margin, in pixels, from screen edge to barborder.bottom-margin(int, optional) β bottom margin, in pixels, from screen edge to barborder.margin(int, optional) β short-hand for settingborder.left/right/top/bottom-marginall at once
font(font, optional) β the default font used in modules and particles. plot twist: it can ALSO be a comma-separated list of several fonts π«Ά in that case the first font is the primary font, and the rest are fallback fonts. these are yambar custom fallback fonts that get searched before the fontconfig-provided fallback list. iykyk.font-shaping(enum, optional) β default setting forfont-shaping, for use in particles. one offullornone. when set tofull(which is the default, btw), strings get "shaped" using HarfBuzz. requires support in fcft π₯foregroundβ type:color, required: no. The default foreground (text) color to use. Like, the base color your text rocks when nobody told it otherwise πtrackpad-sensitivityβ type:int, required: no. Controls how easy it is to triggerwheel-upandwheel-downon-click handlers. Higher values = you gotta drag your finger a longer distance, bestie. The default is30.leftβ type:list, required: no. The left-aligned modules (peepyambar-modules(5)) πcenterβ type:list, required: no. The center-aligned modules (again,yambar-modules(5)) β¨rightβ type:list, required: no. The right-aligned modules (yes,yambar-modules(5)again) π
π EXAMPLES π
Okay so picture this: a top-oriented bar with exactly one module, right-aligned, and it's the clock. It's rendered as a simple string that shows only the time (not the date, we're keeping it minimal, it's giving clean girl aesthetic).
bar:
location: top
height: 26
background: 00000066
right:
- clock:
content:
- string: {text: "{time}"}
π¦ FILES π¦
The config file gets searched for in this exact order, no cap:
$XDG_CONFIG_HOME/yambar/config.yml$HOME/.config/yambar/config.yml
First one it finds wins, so if your stuff is living in one of these, it's gonna get read π
πΈ SEE ALSO πΈ
That's the whole page bestie, you made it to the end, I'm so proud of you fr fr π«Άβ¨ Go forth and make your bar iconic βyambar(5), dated2024-04-22, and it ate, as always π π
π¦ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms