dwmblocks/blocks.def.h

25 lines
801 B
C
Raw Normal View History

2023-02-21 14:13:55 -08:00
// utility macros
#define SECONDS(n) (n * 1000)
2023-02-21 12:15:57 -08:00
2023-02-21 14:13:55 -08:00
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
2023-09-15 22:10:53 -07:00
// {"", "dwmblocks-battery", SECONDS(10), 0},
2023-09-29 11:25:28 -07:00
{"", "[ \"$(fcitx5-remote)\" -eq 2 ] && printf '和' || printf '英'", 0, 2},
2023-09-29 03:39:29 -07:00
{"", "dwmblocks-mu4e", SECONDS(15), 0},
2023-02-23 09:22:54 -08:00
{"", "dwmblocks-volume", 0, 1},
2023-02-21 14:13:55 -08:00
{"", "date +'%a %b %d'", SECONDS(30), 0},
{"", "date +'%R'", SECONDS(2), 0},
{"", "dwmblocks-network", SECONDS(5), 0},
2023-09-15 22:10:53 -07:00
//{"", "dwmblocks-fcitx5", 250, 0},
2023-02-21 12:15:57 -08:00
};
2023-09-15 15:05:07 -07:00
#include "pulse-listener.h"
static const ThreadCallback thread_callbacks[] = {
pulse_listener_main
};
2023-02-21 14:13:55 -08:00
// sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " ";
2023-09-29 11:25:28 -07:00
static unsigned int delimLen = 2;