added config.def.h handling and fixed typo

This commit is contained in:
Aaron Marcher 2016-03-04 18:36:47 +01:00 committed by Aaron Marcher (drkhsh)
parent 94ea78f0fe
commit 864f2246b5
5 changed files with 22 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
slstatus
slstatus.o
config.h

View File

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

View File

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

View File

@ -13,7 +13,7 @@
char *smprintf(char *fmt, ...);
void *setstatus(char *str);
void setstatus(char *str);
char *wifi_signal();
char *battery();