Просмотр исходного кода

added config.def.h handling and fixed typo

Aaron Marcher 10 лет назад
Родитель
Сommit
864f2246b5
5 измененных файлов с 22 добавлено и 2 удалено
  1. 1 0
      .gitignore
  2. 5 1
      Makefile
  3. 15 0
      README.md
  4. 0 0
      config.def.h
  5. 1 1
      slstatus.c

+ 1 - 0
.gitignore

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

+ 5 - 1
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 $@

+ 15 - 0
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!

+ 0 - 0
config.h → config.def.h


+ 1 - 1
slstatus.c

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