added disk usage
This commit is contained in:
parent
fed53ece96
commit
aec3e9ddd5
56
.gitignore
vendored
56
.gitignore
vendored
@ -1,56 +1,2 @@
|
|||||||
# Custom blocks file
|
tags
|
||||||
blocks.h
|
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
|
|
||||||
|
|||||||
11
blocks.def.h
11
blocks.def.h
@ -2,17 +2,20 @@
|
|||||||
static const Block blocks[] = {
|
static const Block blocks[] = {
|
||||||
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
|
||||||
{"", "status-bat", 1, 0},
|
{"", "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},
|
{" ", "date '+(%a) %Y-%m-%d %H:%M'", 5, 0},
|
||||||
|
|
||||||
{"", "status-net", 1, 0},
|
{"", "status-net", 1, 0},
|
||||||
|
|
||||||
{"", "status-vol", 1, 0},
|
{"", "status-vol", 1, 0},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
//sets delimeter between status commands. NULL character ('\0') means no delimeter.
|
||||||
static char delim[] = " | ";
|
static char delim[] = " | ";
|
||||||
static unsigned int delimLen = 5;
|
static unsigned int delimLen = 5;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user