Robust geometry string parsing. Support for x offset. Underline/overline width is now configurable (fixes #43)

This commit is contained in:
LemonBoy
2014-02-21 11:52:50 +00:00
parent 66e8b40be1
commit b70edf4c4b
2 changed files with 114 additions and 73 deletions

View File

@@ -4,7 +4,7 @@ bar - bar ain't recursive
=head1 SYNOPSIS
I<bar> [-h | -g I<width>B<x>I<height> | -b | -d | -f I<font> | -a I<alpha>| -p | -B I<color> | -F I<color>]
I<bar> [-h | -g I<width>B<x>I<height>B<+>I<x> | -b | -d | -f I<font> | -a I<alpha>| -p | -u I<pixel> | -B I<color> | -F I<color>]
=head1 DESCRIPTION
@@ -18,9 +18,9 @@ B<bar> is a lightweight bar entirely based on XCB. Provides full UTF-8 support,
Display the help and exit.
=item B<-g> I<width>B<x>I<height>
=item B<-g> I<width>B<x>I<height>B<+>I<x>
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.
Set the window geometry. If a parameter is omitted it's filled with the default value.
=item B<-b>
@@ -42,6 +42,10 @@ Set the bar alpha in range 0.0 to 1.0. This requires a compositor manager such a
Make bar permanent, don't exit after the standard input is closed.
=item B<-u> I<pixel>
Sets the underline width in pixels. The default is 1.
=item B<-B> I<color>
Set the background color of the bar. I<color> might be either in hex format (#rrggbb) or in the symbolic name format (eg. white, brightred, darkgray).