add some blocks

This commit is contained in:
Arthur Khachaturov 2024-09-19 04:26:09 +03:00
parent e7e5ed3f64
commit 318fdf3b05
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
static const Block blocks[] = {
// <i> <cmd> <int> <sig>
{"", "sb-vpn", 30, 2},
{"", "sb-status", 30, 3},
{"", "sb-cast", 30, 1},
{"", "sb-vpn", 30, 2},
{"", "sb-battery", 5, 0},
{"", "date +'%a %m/%d %I:%M %P'", 5, 0},
};

View file

@ -14,7 +14,7 @@
#define SIGMINUS SIGRTMIN
#endif
#define LENGTH(X) (sizeof(X) / sizeof (X[0]))
#define CMDLENGTH 50
#define CMDLENGTH 512
#define MIN( a, b ) ( ( a < b) ? a : b )
#define STATUSLENGTH (LENGTH(blocks) * CMDLENGTH + 1)