lemonbar(1)
lemonbar(1) π β the lemonbar manual, bestie
π NAME π
lemonbar β Featherweight lemon-scented bar πβ¨
π SYNOPSIS π
lemonbar [-h | -g widthxheight+x+y | -o | -b | -d | -f font | -p | -n
name | -u pixel | -B color | -F color | -U color]
πΈ DESCRIPTION πΈ
Okay so lemonbar (formerly known as bar) is a lightweight statusbar based on XCB. It gives you full UTF-8 support, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory. Iconic. π
π INPUT π
The data to be parsed is read from standard input. Parsing and printing the input data are delayed until a newline is found. So yeah, it waits for that newline, bestie. β¨
β¨ OPTIONS β¨
-hβ Display the help and exit. Bye bestie π-gwidthxheight+x+yβ Set the window geometry. If a parameter is omitted it's filled with the default value. If theyparameter is specified along with the-bswitch then the position is relative to the bottom of the screen. π-onameβ Set next output toname. May be used multiple times; order is significant. If any-ooptions are given, only-ospecified monitors will be used. Invalid output names are silently ignored. (only supported on randr configurations at this time) π-bβ Dock the bar at the bottom of the screen. β¬οΈ-dβ Force docking without asking the window manager. This is needed if the window manager isn't EWMH compliant. π€-ffontβ Specifies a font to use. Can be used multiple times to load more than a single font. π€-pβ Make the bar permanent, don't exit after the standard input is closed. It stays put, periodt. πββοΈ-nnameβ Set theWM_NAMEatom value for the bar. π·οΈ-upixelβ Sets the underline width in pixels. The default is1. π-Bcolorβ Set the background color of the bar.colormust be specified in the hex format (#aarrggbb,#rrggbb,#rgb). If no compositor such ascomptonorxcompmgris running the alpha channel is silently ignored. π¨-Fcolorβ Set the foreground color of the bar. Accepts the same color formats as-B. π-Ucolorβ Set the underline color of the bar. Accepts the same color formats as-B. ποΈ
π FORMATTING π
lemonbar provides a screenrc-inspired formatting syntax to allow full customization at runtime. Every formatting block is opened with %{ and closed by } and accepts the following commands, the parser tries its best to handle malformed input. Use %% to get a literal percent sign (%). πͺ
Rβ Swap the current background and foreground colors. πlβ Aligns the following text to the left side of the screen. β¬ οΈcβ Aligns the following text to the center of the screen. π―rβ Aligns the following text to the right side of the screen. β‘οΈOwidthβ Offset the current position bywidthpixels in the alignment direction. βοΈBcolorβ Set the text background color. The parametercolorcan be-or a color in one of the formats mentioned before. The special value-resets the color to the default one. π¨Fcolorβ Set the text foreground color. The parametercolorcan be-or a color in one of the formats mentioned before. The special value-resets the color to the default one. ποΈTindexβ Set the font used to draw the following text. The parameterindexcan either be-or the 1-based index of the slot which contains the desired font. If the parameter is-lemonbarresets to the normal behavior (matching the first font that can be used for the character). If the selected font can't be used to draw a character,lemonbarwill fall back to normal behavior for that character. πUcolorβ Set the text underline color. The parametercolorcan be-or a color in one of the formats mentioned before. The special value-resets the color to the default one. βοΈAbutton:command:β Create a clickable area starting from the current position, when the area is clickedcommandis printed on stdout. The area is closed when aAtoken, not followed by:is encountered. π±οΈ
Eg.
%{A:reboot:} Click here to reboot %{A}
The button field is optional, it defaults to the left button, and it's a number ranging from 1 to 5 which maps to the left, middle, right, scroll up and scroll down movements. Your mileage may vary. π
Nested clickable areas can trigger different commands.
Eg.
%{A:reboot:}%{A3:halt:} Left click to reboot, right click to shutdown %{A}%{A}
Sdirβ Change the monitor the bar is rendered to.dircan be either π₯οΈ+/-β Next/previous monitor.f/lβ First/last monitor.0-9β Nth monitor.nNAMEβ Named monitor. Eg.%{SnHDMI-0}This text will show up on the HDMI-0 output.
π« Attribute modifiers π«
+attributeβ Set the attributeattributefor the following text. β-attributeβ Unset the attributeattributefor the following text. β!attributeβ Toggle the attributeattributefor the following text. π
Where attribute is one of the following
oβ Draw a line over the text. ποΈuβ Draw a line under the text. π
π¨οΈ OUTPUT π¨οΈ
Clicking on an area makes lemonbar output the command to stdout, followed by a newline, allowing the user to pipe it into a script, execute it or simply ignore it. Simple and powerful, that's it. π₯
π WWW π
git repository <https://github.com/LemonBoy/bar> π¦
π AUTHOR π
- 2012-2020 (C) The Lemon Man
- Xinerama support was kindly contributed by Stebalien
- RandR support was kindly contributed by jvvv
- Clickable areas support was heavily based off u-ra contribution
π That's the whole manual, bestie β source/version lemonbar 1.4, date 2024-08-19. Stay featherweight and lemon-scented πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: lemonbar 1.5-bp160.1.7 Β· MIT
- opensuse-leap 16.0: lemonbar 1.5-bp160.1.7 Β· MIT
- opensuse-leap 16.0: lemonbar 1.5-bp160.1.7 Β· MIT
- opensuse-leap 16.0: lemonbar 1.5-bp160.1.7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms