mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
Rename TRAILING_DELIMITER to LEADING_DELIMITER
This commit is contained in:
parent
0f980d0682
commit
6d762615dd
@ -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.
|
// The status bar's delimiter which appears in between each block.
|
||||||
#define DELIMITER " "
|
#define DELIMITER " "
|
||||||
|
|
||||||
// Adds a trailing delimiter to the statusbar, useful for powerline.
|
// Adds a leading delimiter to the statusbar, useful for powerline.
|
||||||
#define TRAILING_DELIMITER
|
#define LEADING_DELIMITER
|
||||||
|
|
||||||
// Enable clickability for blocks. Needs `dwm` to be patched appropriately.
|
// Enable clickability for blocks. Needs `dwm` to be patched appropriately.
|
||||||
// See the "Clickable blocks" section below.
|
// See the "Clickable blocks" section below.
|
||||||
|
2
config.h
2
config.h
@ -1,6 +1,6 @@
|
|||||||
#define CMDLENGTH 50
|
#define CMDLENGTH 50
|
||||||
#define DELIMITER "<"
|
#define DELIMITER "<"
|
||||||
#define TRAILING_DELIMITER
|
#define LEADING_DELIMITER
|
||||||
#define CLICKABLE_BLOCKS
|
#define CLICKABLE_BLOCKS
|
||||||
|
|
||||||
const Block blocks[] = {
|
const Block blocks[] = {
|
||||||
|
2
main.c
2
main.c
@ -79,7 +79,7 @@ int getStatus(char* new, char* old) {
|
|||||||
new[0] = '\0';
|
new[0] = '\0';
|
||||||
|
|
||||||
for (int i = 0; i < LEN(blocks); i++) {
|
for (int i = 0; i < LEN(blocks); i++) {
|
||||||
#ifdef TRAILING_DELIMITER
|
#ifdef LEADING_DELIMITER
|
||||||
if (strlen(outputs[i]))
|
if (strlen(outputs[i]))
|
||||||
#else
|
#else
|
||||||
if (strlen(new) && strlen(outputs[i]))
|
if (strlen(new) && strlen(outputs[i]))
|
||||||
|
Loading…
Reference in New Issue
Block a user