summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile6
-rw-r--r--README.md15
-rw-r--r--config.def.h (renamed from config.h)0
-rw-r--r--slstatus.c2
5 files changed, 22 insertions, 2 deletions
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
index b92a20d..b92a20d 100644
--- a/config.h
+++ b/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();