Go to file
Giuseppe c36808d3f9 Merge pull request #8 from mil/master
Add how to clear underline color in README
2012-07-29 12:17:11 -07:00
.gitignore add .gitignore file - ignore tmp, object and executable files 2012-07-17 14:56:52 +03:00
LICENSE Added licensing 2012-07-22 00:50:16 +02:00
Makefile Fixed a memory leak. Cleaned up a bit the code. 2012-07-21 17:41:57 +02:00
README.md Typo, added the 2012-07-26 20:07:36 -04:00
bar.c Don't sync background color with foreground one. 2012-07-25 22:57:51 +02:00
config.def.h Toggleable underline/overline switch added. 2012-07-25 17:09:04 +02:00
palette.pl Added palette.pl 2012-07-18 17:25:19 +02:00

README.md

b(ar) a(in't) r(ecursive)

2012 (C) The Lemon Man

A lightweight bar based on XCB (yay). Provides foreground/background color switching along with text alignment (screw you dzen!), full utf8 support and reduced memory footprint. Nothing less and nothing more.

Options

bar accepts a couple of command line switches.

-h      Shows the help and bails out.
-p      Make the bar permanent.

Configuration

Change the config.h file and you're good to go! The text background and foreground are respectively the first and the second entries in the palette (COLOR0 and COLOR1).

Colors

Attached there's palette.pl, an handy tool that extracts a palette from your X colors and returns it ready to be pasted in the configuration file.

palette.pl <.Xresources / .Xdefaults path>

If you keep your colors in a separate file just feed that file and you're good to go.

Text formatting

All the format commands are preceded by a backslash (\). To draw a backslash just backslash escape it (\\).

f<0-9>  Selects the text foreground color from the palette.
b<0-9>  Selects the text background color from the palette.
u<0-9>  Selects the underline color from the palette.
        To reset the bg/fg/underline color just pass 'r' as the color index.

l       Aligns the text to the left.
c       Aligns the text to the center.
r       Aligns the text to the right.