Reorganize code and remove hack for empty block outputs

This commit is contained in:
Utkarsh Verma
2023-03-25 21:38:05 +05:30
parent f6a5fa6480
commit 8dd9bc6a7d
17 changed files with 531 additions and 362 deletions

View File

@@ -1,16 +1,6 @@
#define CMDLENGTH 45
#define DELIMITER " "
#define CLICKABLE_BLOCKS
#pragma once
const Block blocks[] = {
BLOCK("sb-mail", 1800, 17),
BLOCK("sb-music", 0, 18),
BLOCK("sb-disk", 1800, 19),
BLOCK("sb-memory", 10, 20),
BLOCK("sb-loadavg", 5, 21),
BLOCK("sb-mic", 0, 26),
BLOCK("sb-record", 0, 27),
BLOCK("sb-volume", 0, 22),
BLOCK("sb-battery", 5, 23),
BLOCK("sb-date", 1, 24)
};
#define CLICKABLE_BLOCKS 1 // Enable clickability for blocks
#define CMDLENGTH 45 // Number of characters that each block will output
#define DELIMITER " " // Delimiter string used to separate blocks
#define LEADING_DELIMITER 0 // Whether a leading separator should be used