diff --git a/README.md b/README.md index 1f17ca6..be978a6 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ that block is executed with the first argument specifying which button was clicked (1 for left, 2 for middle and 3 for right). Colored output is inspired by statuscolors patch for dwm. To add colors, have -your programs for the blocks output raw characters from '\x0b' to '\x31'. '\x0b' +your programs for the blocks output raw characters from `\x0b` to `\x31`. `\x0b` in status text switches active colorscheme to the first one in the colors array -in dwm and so on. See +defined in dwm's config.h and so on. See [statuscolors patch for dwm](https://dwm.suckless.org/patches/statuscolors/) -for more info. Keep in mind that you have to start from '\x0b' instead of '\x01' +for more info. Keep in mind that you have to start from `\x0b` instead of `\x01` as instructed on the page. # Signaling changes diff --git a/blocks.h b/blocks.h index 598a56a..9d33d2d 100644 --- a/blocks.h +++ b/blocks.h @@ -1,14 +1,14 @@ #define PATH(name) "/home/ashish/.local/projects/dwmblocks/blocks/"name -/* At max, DELIMITERENDCHAR - 1 number of clickable blocks will be allowed. - * DELIMITERENDCHAR must be less than 32. +/* DELIMITERENDCHAR must be less than 32. + * At max, DELIMITERENDCHAR - 1 number of clickable blocks will be allowed. * Raw characters larger than DELIMITERENDCHAR and smaller than ' ' in ASCII character set can be used for signaling color change in status. * The character corresponding to DELIMITERENDCHAR + 1 ('\x0b' when DELIMITERENDCHAR is 10) will switch the active colorscheme to the first one - defined in colors array in dwm and so on. - * If you change this, don't forget to update its value in dwm.c and color - codes in your pathu programs. */ + defined in colors array in dwm's config.h and so on. + * If you wish to change this, don't forget to update its value in dwm.c and + color codes in your pathu programs. */ #define DELIMITERENDCHAR 10