blocks.h (1879B)
1 /* time interval in seconds to sleep before looking for updates in the main loop */ 2 #define SLEEPINTERVAL 1 3 4 /* If interval of a block is set to 0, the block will only be updated once at startup. 5 * If interval is set to a negative value, the block will never be updated in the main loop. 6 * Set pathc to NULL if clickability is not required for the block. 7 * Set signal to 0 if both clickability and signaling are not required for the block. 8 * Signal must be less than 10 for clickable blocks. 9 * If multiple signals are pending, then the lowest numbered one will be delivered first. */ 10 11 /* pathu - path of the program whose output is to be used for status text 12 * output of the program should have a null or newline character at the end 13 * pathc - path of the program to be executed on clicks */ 14 static Block blocks[] = { 15 /* pathu pathc interval signal */ 16 /* { "syncthing.sh", "syncthing-button.sh", 600, 7}, */ 17 { "pkgs.sh", "pkgs-button.sh", 600, 9}, 18 { "temp.sh", "temp-button.sh", 5, 6}, 19 { "mem.sh", "mem-button.sh", 5, 4}, 20 { "cpu.sh", "cpu-button.sh", 5, 3}, 21 { "volume.sh", "volume-button.sh", 600, 5}, 22 /* { "battery.sh", "battery-button.sh", 5, 8}, */ 23 { "calendar.sh", "calendar-button.sh", 600, 2}, 24 { "time.sh", "time-button.sh", 1, 1}, 25 26 { NULL } /* just to mark the end of the array */ 27 }; 28 29 static const char *delim = " | ";