dotfiles/.config/suckless/dwmblocks/include/main.h
2024-04-23 07:46:41 +05:00

17 lines
289 B
C

#ifndef MAIN_H
#define MAIN_H
#include <signal.h>
#include "config.h"
#include "util.h"
#define REFRESH_SIGNAL SIGUSR1
// Utilise C's adjacent string concatenation to count the number of blocks.
#define X(...) "."
enum { BLOCK_COUNT = LEN(BLOCKS(X)) - 1 };
#undef X
#endif // MAIN_H