From aec3e9ddd533f36a830dacf3a088cf461317afc8 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sun, 30 Oct 2022 16:43:25 +1030 Subject: [PATCH] added disk usage --- .gitignore | 56 +--------------------------------------------------- blocks.def.h | 11 +++++++---- 2 files changed, 8 insertions(+), 59 deletions(-) diff --git a/.gitignore b/.gitignore index b6605b4..70691ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,56 +1,2 @@ -# Custom blocks file +tags blocks.h - -# Prerequisites -*.d - -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex -dwmblocks - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf diff --git a/blocks.def.h b/blocks.def.h index 5f5a7b9..384347a 100644 --- a/blocks.def.h +++ b/blocks.def.h @@ -2,17 +2,20 @@ static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ {"", "status-bat", 1, 0}, - - {"Mem ", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g", 30, 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-vol", 1, 0}, - + }; //sets delimeter between status commands. NULL character ('\0') means no delimeter. static char delim[] = " | "; static unsigned int delimLen = 5; +