Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1009 Bytes

File metadata and controls

35 lines (30 loc) · 1009 Bytes

lbar

Tiny X11 status bar that i made for lwm to learn how to use Xft.

Installing

Compile with:

make install

Usage

Pipe text ending in new line to lbar, format with '\r' followed by a special character.

Formatting

\r[U|L|C|R]
\rU toggles underline. \rL, \rC and \rR draws text on the left, center and right sides of the bar respectively.
Example script can be found here. Run with:

./input.sh | lbar

Configuring

Simply edit config.h and recompile. Alternatively, change values via command-line options:

lbar [-h|-b|-f font|-u size|-H height|-F foreground|-B background|-U underline]
    -h          show help
    -b          place bar at the bottom of the screen
    -f font     set bar font
    -u size     set bar underline height in pixels
    -H height   set bar height in pixels
    -F #RRGGBB  set bar text color
    -B #RRGGBB  set bar background color
    -U #RRGGBB  set bar underline color