From 537ed5369483cc123918bea6f60f6389a7c859c7 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Sat, 17 Jul 2021 19:32:25 +0200 Subject: [PATCH 1/2] Change command length to 100 --- dwmblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwmblocks.c b/dwmblocks.c index 68267d7..86ce921 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -5,7 +5,7 @@ #include #include #define LENGTH(X) (sizeof(X) / sizeof (X[0])) -#define CMDLENGTH 50 +#define CMDLENGTH 100 typedef struct { char* icon; From 0aa36781686213b2fdab776e72dd54c7288ecee1 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Sat, 17 Jul 2021 19:32:58 +0200 Subject: [PATCH 2/2] Add new status modules --- config.h | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/config.h b/config.h index cc9281b..a706aef 100644 --- a/config.h +++ b/config.h @@ -1,30 +1,32 @@ //Modify this file to change what commands output to your statusbar, and recompile using the make command. static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ - {"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, - /* {"", "music", 0, 11},*/ - {"", "pacpackages", 0, 8}, + /* {"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, */ + {"", "music", 0, 11}, + /* {"", "pacpackages", 0, 8}, */ {"", "news", 0, 6}, /* {"", "crypto", 0, 13}, */ /* {"", "price bat \"Basic Attention Token\" 🦁", 0, 20}, */ /* {"", "price btc Bitcoin 💰", 0, 21}, */ /* {"", "price lbc \"LBRY Token\" 📚", 0, 22}, */ - {"", "torrent", 20, 7}, - /* {"", "memory", 10, 14}, */ - /* {"", "cpu", 10, 18}, */ - /* {"", "moonphase", 18000, 17}, */ - {"", "weather", 18000, 5}, - {"", "mailbox", 180, 12}, - /* {"", "nettraf", 1, 16}, */ + /* {"", "torrent", 20, 7}, */ + {"", "memory", 10, 14}, + {"", "cpu", 10, 18}, + {"", "disk", 10, 19}, + {"", "moonphase", 18000, 17}, + /* {"", "weather", 18000, 5}, */ + /* {"", "mailbox", 180, 12}, */ + {"", "nettraf", 1, 16}, + {"", "iplocate", 0, 12}, {"", "volume", 0, 10}, - {"", "battery", 5, 3}, - {"", "clock", 60, 1}, - {"", "internet", 5, 4}, - {"", "help-icon", 0, 15}, + /* {"", "battery", 5, 3}, */ + {"", "clock", 1, 1}, + /* {"", "internet", 5, 4}, */ + /* {"", "help-icon", 0, 15}, */ }; //Sets delimiter between status commands. NULL character ('\0') means no delimiter. -static char *delim = " "; +static char *delim = " | "; // Have dwmblocks automatically recompile and run when you edit this file in // vim with the following line in your vimrc/init.vim: