From 7f799a9b49cc976e05844e4e94d7d166a059e1c4 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sun, 1 May 2022 16:21:26 -0500 Subject: [PATCH] my blocks --- config.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config.h b/config.h index 40d5a96..16bcde4 100644 --- a/config.h +++ b/config.h @@ -1,16 +1,16 @@ #define CMDLENGTH 60 #define DELIMITER " " -#define CLICKABLE_BLOCKS const Block blocks[] = { - BLOCK("sb-mail", 1800, 17), - BLOCK("sb-music", 0, 18), - BLOCK("sb-disk", 1800, 19), - BLOCK("sb-memory", 10, 20), - BLOCK("sb-loadavg", 5, 21), - BLOCK("sb-mic", 0, 26), - BLOCK("sb-record", 0, 27), - BLOCK("sb-volume", 0, 22), - BLOCK("sb-battery", 5, 23), - BLOCK("sb-date", 1, 24) + /* script, refresh, signal */ + + BLOCK("~/scripts/blocks/net-rate.sh", 5, 23), + BLOCK("~/scripts/blocks/ram-free.sh", 5, 22), + BLOCK("~/scripts/blocks/cpu-use.sh", 5, 21), + BLOCK("~/scripts/blocks/cpu-temp.sh", 5, 20), + + // TODO: Update volume in a hook rather than querying it every 2 seconds + BLOCK("~/scripts/blocks/volume.sh", 2, 19), + + BLOCK("~/scripts/blocks/datetime.sh", 15, 18), };