From 3e2e81f50a1603f9d492d795c03327ea2ec7b7ff Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Fri, 17 Feb 2023 20:44:31 +1030 Subject: [PATCH] added updated counter --- blocks.def.h | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/blocks.def.h b/blocks.def.h index c2b02d6..7d422b5 100644 --- a/blocks.def.h +++ b/blocks.def.h @@ -1,25 +1,19 @@ -//Modify this file to change what commands output to your statusbar, and recompile using the make command. +// 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*/ - {" ", "", 1000, 0}, - - {"", "status-bat", 1, 0}, - - {"", "status-vol", 1, 0}, - - {" ", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, - - {"", "status-disk", 30, 0}, - - {" ", "date '+%a %Y-%m-%d %H:%M'", 5, 0}, - - {"", "status-net", 1, 0}, - - {" ", "", 1000, 0}, - + /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ + {" ", "", 1000, 0}, + {"", "status-bat", 1, 0}, + {"", "status-vol", 1, 0}, + {" ", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 0}, + {"", "status-disk", 30, 0}, + {" ", "date '+%a %Y-%m-%d %H:%M'", 5, 0}, + {"", "status-net", 1, 0}, + {"", "status-packages", 5, 8}, + {" ", "", 1000, 0}, }; -//sets delimeter between status commands. NULL character ('\0') means no delimeter. -static char delim[] = " | "; +// sets delimeter between status commands. NULL character ('\0') means no +// delimeter. +static char delim[] = " "; static unsigned int delimLen = 6; -