Fix minor spelling errors

Fix minor spelling mistakes in README.md, doc/yabar.1 and
include/yabar.h
This commit is contained in:
Jack Henschel 2016-08-06 22:06:53 +02:00
parent 94e05dd625
commit be42d2b5ee
3 changed files with 9 additions and 9 deletions

View file

@ -203,7 +203,7 @@ Each block can have its command/script, background, foreground (i.e. font), unde
You can change block colors(background, foreground, underline and overline) within runtime. Along with pango markup format, you can fully control how a block looks throughout yabar's session.
If you wish to change one or more of the 4 color types, you must begin your string-to-be-drawn (i.e. the output string to stdout by your shell script) with `!Y FORMAT Y!`. the `FORMAT` statement should contain contain the color type (`BG` or `bg` for background, `FG` or `fg` for foreground, `U` or `u` for underline and `O` or `o` for overline). The color must be in hex AARRGGBB (So if you want to add an rgb color just make it `FFxxxxxx`). Examples:
If you wish to change one or more of the 4 color types, you must begin your string-to-be-drawn (i.e. the output string to stdout by your shell script) with `!Y FORMAT Y!`. the `FORMAT` statement should contain the color type (`BG` or `bg` for background, `FG` or `fg` for foreground, `U` or `u` for underline and `O` or `o` for overline). The color must be in hex AARRGGBB (So if you want to add an rgb color just make it `FFxxxxxx`). Examples:
"!Y BG 0xFFFF0000 fg0xFF00ff00 U0xFFFAC739 Y!"
"!Ybg0xff00ff00Y!"
@ -234,7 +234,7 @@ Internal blocks have 5 additional block-specific options:
Yabar has a growing set of useful blocks. You can try out the sampe config located in `examples/internal1.config`. The current blocks are:
* Date & time: Maybe the most essential block. You can control the output format using the [standard c library format](https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html). Example:
* Date & time: Maybe the most essential block. You can control the output format using the [standard C library format](https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html). Example:
exec: "YABAR_DATE";
internal-option1: "%a %d %b, %I:%M"; #Format

View file

@ -332,7 +332,7 @@ variable-size: true;
You can change block colors(background, foreground, underline and overline) within runtime. Along with pango markup format, you can fully control how a block looks throughout yabar's session.
.PP
If you wish to change one or more of the 4 color types, you must begin your string\-to\-be\-drawn (i.e. the output string to stdout by your shell script) with \fB\fC!Y FORMAT Y!\fR\&. the \fB\fCFORMAT\fR statement should contain contain the color type (\fB\fCBG\fR or \fB\fCbg\fR for background, \fB\fCFG\fR or \fB\fCfg\fR for foreground, \fB\fCU\fR or \fB\fCu\fR for underline and \fB\fCO\fR or \fB\fCo\fR for overline). The color must be in hex AARRGGBB (So if you want to add an rgb color just make it \fB\fCFFxxxxxx\fR). Examples:
If you wish to change one or more of the 4 color types, you must begin your string\-to\-be\-drawn (i.e. the output string to stdout by your shell script) with \fB\fC!Y FORMAT Y!\fR\&. the \fB\fCFORMAT\fR statement should contain the color type (\fB\fCBG\fR or \fB\fCbg\fR for background, \fB\fCFG\fR or \fB\fCfg\fR for foreground, \fB\fCU\fR or \fB\fCu\fR for underline and \fB\fCO\fR or \fB\fCo\fR for overline). The color must be in hex AARRGGBB (So if you want to add an rgb color just make it \fB\fCFFxxxxxx\fR). Examples:
.PP
.RS
@ -355,7 +355,7 @@ Yabar sets a handful of environment variables before executing your commands/scr
.RS
.nf
${YABAR\_BLOCK\_X} #The begining x axis for the block
${YABAR\_BLOCK\_X} #The beginning x axis for the block
${YABAR\_BLOCK\_Y} #It returns just the bottom y value of the block in case of topbar or just the top y value of the block in case of bottombar
${YABAR\_BLOCK\_WIDTH} #Block width
@ -385,7 +385,7 @@ Internal blocks have 5 additional block\-specific options:
Yabar has a growing set of useful blocks. The current blocks are:
.IP \(bu 2
Date and time: Maybe the most essential block. You can control the output format using the
standard c libary format in time.h. Example:
standard C library format in time.h. Example:
.PP
.RS

View file

@ -45,7 +45,7 @@ extern char *strdup(const char *s); //to suppress implicit decleration warning f
#define BUFSIZE_EXT 512 //buffer size for external blocks
#define BUFSIZE_EXT_PANGO 1024 //buffer size for extern blocks with pango markup
#define BUFSIZE_INT 256 //initial value of buffer size for internal blocks, can be overriden in runtime if needed
#define BUFSIZE_INT 256 //initial value of buffer size for internal blocks, can be overridden in runtime if needed
#define CFILELEN 256
#define YA_DEF_FONT "sans bold 9"