Skip to content

Latest commit

 

History

History
153 lines (77 loc) · 3.26 KB

README.pod

File metadata and controls

153 lines (77 loc) · 3.26 KB

NAME

bar - bar ain't recursive

SYNOPSIS

bar [-h | -g widthxheight | -b | -d | -f font | -a alpha| -p | -B color | -F color]

DESCRIPTION

bar is a lightweight bar entirely based on XCB. Provides full UTF-8 support, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory.

OPTIONS

-h

Display the help and exit.

-g widthxheight

Set the window geometry. Both the parameters can be omitted, bar defaults the former to the whole width and the height to the font height + 1 pixel.

-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.

-f font

Comma separated list of fonts, bar supports a maximum of two fonts.

-a alpha

Set the bar alpha in range 0.0 to 1.0. This requires a compositor manager such as Compton.

-p

Make bar permanent, don't exit after the standard input is closed.

-B color

Set the background color of the bar. color might be either in hex format (#rrggbb) or in the symbolic name format (eg. white, brightred, darkgray).

-F color

Set the foreground color of the bar. Accepts the same color formats as -B.

FORMATTING

bar 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 it's best to handle malformed input.

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.

Bcolor

Set the text background color. The parameter color can 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 parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.

Ucolor

Set the text underline color. The parameter color can be - or a color in one of the formats mentioned before. The special value - resets the color to the default one.

Sdir

Change the monitor bar is rendering to. dir can be either

+/-

Next/previous monitor.

f/l

First/last monitor.

0-9

Nth monitor.

Attribute modifiers

+attribute

Set the attribute attribute for the following text.

-attribute

Unset the attribute attribute for the following text.

!attribute

Toggle the attribute attribute for the following text.

Where attribute is one of the following

o

Draw a line over the text.

u

Draw a line under the text.

WWW

git repository

AUTHOR

2012-2014 (C) The Lemon Man

Xinerama support was kindly contributed by Stebalien

RandR support was kindly contributed by jvvv