diff --git a/Makefile b/Makefile index e0be572..eaa971f 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ CC ?= gcc STRIP ?= strip -CFLAGS = -std=c99 -I/usr/include/freetype2 -Os +CFLAGS = -Wall -std=c99 -I/usr/include/freetype2 -Os LDFLAGS = -lxcb -lxcb-xinerama -lxcb-randr -lX11 -lX11-xcb -lXft -lfreetype -lz -lfontconfig -CFDEBUG = -g3 -pedantic -Wall -Wextra -Wunused-parameter -Wlong-long\ +CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\ -Wsign-conversion -Wconversion -Wimplicit-function-declaration EXEC = bar diff --git a/README.pod b/README.pod index b276dd5..2887a5b 100644 --- a/README.pod +++ b/README.pod @@ -84,6 +84,10 @@ Set the text background color. The parameter I can be I<-> or a color in Set the text foreground color. The parameter I can be I<-> or a color in one of the formats mentioned before. The special value I<-> resets the color to the default one. +=item BI + +Set the font used to draw the following text. The parameter I is a 1-based index of the font list supplied to bar. Any other value (for example I<->) resets bar to normal behaviour (matching the first font that can be used for that character). If the selected font can't be used to draw a character, bar will fall back to normal behaviour for that character. + =item BI Set the text underline color. The parameter I can be I<-> or a color in one of the formats mentioned before. The special value I<-> resets the color to the default one. @@ -94,7 +98,11 @@ Create a clickable area starting from the current position, when the area is cli Eg. I<%{A:reboot:} Click here to reboot %{A}> -The I