added disk usage

This commit is contained in:
Solomon Laing 2022-10-30 16:43:25 +10:30
parent fed53ece96
commit aec3e9ddd5
2 changed files with 8 additions and 59 deletions

56
.gitignore vendored
View File

@ -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

View File

@ -3,7 +3,9 @@ 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},
@ -16,3 +18,4 @@ static const Block blocks[] = {
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
static char delim[] = " | ";
static unsigned int delimLen = 5;