This repository has been archived by the owner on Feb 13, 2022. It is now read-only.
forked from ashish-yadav11/dsblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blocks.h
39 lines (34 loc) · 1.96 KB
/
blocks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "blocks/battery.h"
#include "blocks/cputemp.h"
#include "blocks/news.h"
#include "blocks/music.h"
#include "blocks/mail.h"
#include "blocks/time.h"
#include "blocks/volume.h"
#include "blocks/kdeconnect.h"
#include "blocks/kblayout.h"
#define SLEEPINTERVAL 1
/* If interval of a block is set to 0, the block will only be updated once at startup.
* If interval is set to a negative value, the block will never be updated in the main loop.
* Set pathc to NULL if clickability is not required for the block.
* Set signal to 0 if both clickability and signaling are not required for the block.
* Signal must be less than 10 for clickable blocks.
* If multiple signals are pending, then the lowest numbered one will be delivered first. */
/* funcu - function responsible for updating what is shown on the status
* funcc - function responsible for handling clicks on the block */
static Block blocks[] = {
/* funcu funcc interval signal */
{ musicu, musicc, 0, 9 },
{ newsu, newsc, 0, 6 },
/* { cputempu, cputempc, 2, 6 }, */
/* { mailu, mailc, 300, 5 }, */
{ kblayoutu, kblayoutc, 0, 7 },
{ kdeconnectu, kdeconnectc, 15, 0 },
/* { wifistatus, wifistatus, 5, 0 }, */
/* { ethernet, ethernet, 5, 0 }, */
{ volumeu, volumec, 0, 1 },
{ batteryu, batteryc, 5, 4 },
{ timeu, timec, 1, 3 },
{ NULL },
};
static const char *delim = " ";