Rename TRAILING_DELIMITER to LEADING_DELIMITER

This commit is contained in:
Utkarsh Verma 2021-10-19 17:21:18 +05:30
parent 0f980d0682
commit 6d762615dd
No known key found for this signature in database
GPG Key ID: 817656CF818EFCCC
3 changed files with 4 additions and 4 deletions

View File

@ -92,8 +92,8 @@ Apart from that you can also modify the following parameters to suit your needs.
// The status bar's delimiter which appears in between each block.
#define DELIMITER " "
// Adds a trailing delimiter to the statusbar, useful for powerline.
#define TRAILING_DELIMITER
// Adds a leading delimiter to the statusbar, useful for powerline.
#define LEADING_DELIMITER
// Enable clickability for blocks. Needs `dwm` to be patched appropriately.
// See the "Clickable blocks" section below.

View File

@ -1,6 +1,6 @@
#define CMDLENGTH 50
#define DELIMITER "<"
#define TRAILING_DELIMITER
#define LEADING_DELIMITER
#define CLICKABLE_BLOCKS
const Block blocks[] = {

2
main.c
View File

@ -79,7 +79,7 @@ int getStatus(char* new, char* old) {
new[0] = '\0';
for (int i = 0; i < LEN(blocks); i++) {
#ifdef TRAILING_DELIMITER
#ifdef LEADING_DELIMITER
if (strlen(outputs[i]))
#else
if (strlen(new) && strlen(outputs[i]))