← 返回命令列表

Linux command

lemonbar 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start bar reading from stdin

lemonbar

Set bar geometry

lemonbar -g [1920x30+0+0]

Set background and foreground

lemonbar -B "[#1d1f21]" -F "[#c5c8c6]"

Set font

lemonbar -f "[monospace:size=10]"

Bottom bar with underline

lemonbar -b -u [2]

Pipe script to bar

[./status.sh] | lemonbar

说明

lemonbar (formerly bar) is a lightweight bar based on XCB. It reads text from stdin and displays it as a status bar, supporting colors, alignment, and clickable areas. The bar uses a simple markup format for formatting: %{F#color} for foreground, %{B#color} for background, %{A:command:} for clickable areas.

参数

-g _geometry_
Bar geometry (WxH+X+Y).
-b
Dock bar at bottom.
-f _font_
Font specification.
-B _color_
Background color.
-F _color_
Foreground color.
-u _pixels_
Underline width.
-n _name_
WM_NAME property.
-d
Force docking.

FAQ

What is the lemonbar command used for?

lemonbar (formerly bar) is a lightweight bar based on XCB. It reads text from stdin and displays it as a status bar, supporting colors, alignment, and clickable areas. The bar uses a simple markup format for formatting: %{F#color} for foreground, %{B#color} for background, %{A:command:} for clickable areas.

How do I run a basic lemonbar example?

Run `lemonbar` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -g _geometry_ do in lemonbar?

Bar geometry (WxH+X+Y).