Commit Diff


commit - 0410acb0caf2c1d93bab5c3ab58838e1e6b476d9
commit + 6df598b06759c9f8dc0c72c84387add8ed65dd2c
blob - f450a100e11d76f70c224b585d173f1986cccbfd
blob + ba5bb22fa6e31169a3f24fa2746b2eb47ff03a6e
--- LICENSE
+++ LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2024 Gonzalo Rodriguez (gonzalo@x61.sh)
+Copyright (c) 2024-2025 Gonzalo Rodriguez (gonzalo@x61.sh)
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
blob - cd5a4b054a640aa6d7bb8f294e0f8b5b5ffc46a0
blob + 98a94dfd58cf66c59e632eb478aea36834a3dc4f
--- Makefile
+++ Makefile
@@ -7,6 +7,10 @@ DBGFLAGS =	-O0 -g
 CFLAGS =	-pipe -Wall -Werror -march=native
 INCLUDEDIR =	-I.
 
+# man
+MANDIR =	${HOME}/man
+MAN5 =		${MANDIR}/man5
+
 all: build
 
 build: clean
@@ -18,6 +22,7 @@ opt: clean
 install:
 	install -s termbar ${HOME}/bin/termbar
 	install termbar.conf ${HOME}/.termbar.conf
+	install -Dm 644 termbar.conf.5 ${MAN5}/termbar.conf.5
 
 clean:
 	rm -f termbar
@@ -25,6 +30,7 @@ clean:
 uninstall:
 	rm -f ${HOME}/bin/termbar
 	rm -f ${HOME}/.termbar.conf
+	rm -f ${MAN5}/termbar.conf.5
 
 debug: build
 	egdb -q ./termbar -ex "break main" -ex "run"
blob - b23dfd90f89576759e69379f28cf533dace3b3c5
blob + a0ede5898c1df5bc2d712b8bd3b09dbd3f38eeb0
--- termbarc.c
+++ termbarc.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Gonzalo Rodriguez (gonzalo@x61.sh)
+ * Copyright (c) 2024-2025 Gonzalo Rodriguez (gonzalo@x61.sh)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -500,7 +500,7 @@ int main(int argc, const char *argv[])
                 if (argc == 2)
                         if (strcmp("-1", argv[1]) >= 0)
                                 return 0;
-                usleep(2000000);
+                usleep(500000);
         }
         return 0;
 }
blob - cf69de91a16819a6cc2b1e73dfacf9d77241652a
blob + 6f67ea36617a861de7e653756fdafc94ad6b7a9a
--- termbarc.h
+++ termbarc.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2024 Gonzalo Rodriguez (gonzalo@x61.sh)
+ * Copyright (c) 2024-2025 Gonzalo Rodriguez (gonzalo@x61.sh)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without