From 864f2246b5dfeb023137d8f5ebb599e4eb6aedda Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Fri, 4 Mar 2016 18:36:47 +0100 Subject: [PATCH] added config.def.h handling and fixed typo --- .gitignore | 1 + Makefile | 6 +++++- README.md | 15 +++++++++++++++ config.h => config.def.h | 0 slstatus.c | 2 +- 5 files changed, 22 insertions(+), 2 deletions(-) rename config.h => config.def.h (100%) diff --git a/.gitignore b/.gitignore index 0622c05..484c6c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ slstatus slstatus.o +config.h diff --git a/Makefile b/Makefile index f31d1c7..e1bb370 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,11 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk +${OBJ}: config.h config.mk + +config.h: + @echo creating $@ from config.def.h + @cp config.def.h $@ ${NAME}: ${OBJ} @echo CC -o $@ diff --git a/README.md b/README.md index 8bd2a91..ce55737 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ # slstatus A suckless status monitor for DWM written in pure C without any system() calls. + +# information + +- wifi percentage +- battery percentage +- cpu usage in percent +- cpu temperature +- ram usage in percent +- alsa volume level in percent +- date +- time + +# configuration + +Just edit config.h and recompile! diff --git a/config.h b/config.def.h similarity index 100% rename from config.h rename to config.def.h diff --git a/slstatus.c b/slstatus.c index 77f900d..962744a 100644 --- a/slstatus.c +++ b/slstatus.c @@ -13,7 +13,7 @@ char *smprintf(char *fmt, ...); -void *setstatus(char *str); +void setstatus(char *str); char *wifi_signal(); char *battery();