~kris/suckless

dwmblocks

ref: 95d7f502dfdc51ab35905cb8cef45fbfb4e36f85 dwmblocks/include/main.h -rw-r--r-- 289 bytes
95d7f502 — Kris Yotam Update config: add pipe delimiter and reorder blocks 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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