Updated blocks.h
This commit is contained in:
parent
79afccbb80
commit
6b91bce853
10
blocks.h
10
blocks.h
|
@ -6,24 +6,22 @@
|
||||||
/* If interval of a block is set to 0, the block will only be updated once at startup.
|
/* 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.
|
* If interval is set to a negative value, the block will never be updated in the main loop.
|
||||||
* Set signal to 0 if signalling is not required for the block.
|
* Set signal to 0 if signalling is not required for the block.
|
||||||
* Keep signal for clickable blocks less than 10.
|
* Signal must be less than 10 for clickable blocks.
|
||||||
* If multiple realtime signals are pending, then the lowest numbered signal is delivered first. */
|
* If multiple realtime signals are pending, then the lowest numbered signal is delivered first. */
|
||||||
|
|
||||||
/* pathu - path of the program whose output is to be used for status text
|
/* pathu - path of the program whose output is to be used for status text
|
||||||
* pathc - path of the program to be executed on clicks */
|
* pathc - path of the program to be executed on clicks */
|
||||||
static Block blocks[] = {
|
static Block blocks[] = {
|
||||||
/* pathu pathc interval signal */
|
/* pathu pathc interval signal */
|
||||||
{ PATH("hotspot.sh"), PATH("hotspot_button.sh"), -1, 3},
|
|
||||||
|
|
||||||
{ PATH("time.sh"), NULL, 30, 10},
|
{ PATH("time.sh"), NULL, 30, 10},
|
||||||
|
|
||||||
{ PATH("calendar.sh"), PATH("calendar_button.sh"), 30, 6},
|
{ PATH("calendar.sh"), NULL, 30, 3},
|
||||||
|
|
||||||
{ PATH("volume.sh"), PATH("volume_button.sh"), 0, 1},
|
{ PATH("volume.sh"), PATH("volume_button.sh"), 0, 1},
|
||||||
|
|
||||||
{ PATH("cpu_temp.sh"), PATH("cpu_temp_button.sh"), 1, 5},
|
{ PATH("cpu_temp.sh"), PATH("cpu_temp_button.sh"), 1, 4},
|
||||||
|
|
||||||
{ PATH("battery.sh"), PATH("battery_button.sh"), 30, 4},
|
{ PATH("battery.sh"), PATH("battery_button.sh"), 30, 2},
|
||||||
|
|
||||||
{ NULL } /* just to mark the end of the array */
|
{ NULL } /* just to mark the end of the array */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue