Apply personal config master
authorGeorgios Atheridis <georgios@atheridis.org>
Sat, 11 Feb 2023 02:00:49 +0000 (02:00 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Sat, 11 Feb 2023 02:00:49 +0000 (02:00 +0000)
Added uptime, free ram, volume, and datetime.

config.def.h

index d805331c85e550022efa66f03cf640016a3d61cc..1596999f20b76462aa1849886a4c85b68840a567 100644 (file)
@@ -1,7 +1,7 @@
 /* See LICENSE file for copyright and license details. */
 
 /* interval between updates (in ms) */
-const unsigned int interval = 1000;
+const unsigned int interval = 100;
 
 /* text to show if no value can be retrieved */
 static const char unknown_str[] = "n/a";
@@ -65,5 +65,9 @@ static const char unknown_str[] = "n/a";
  */
 static const struct arg args[] = {
        /* function format          argument */
-       { datetime, "%s",           "%F %T" },
+       { uptime,   " %s | ",           NULL    },
+       { ram_free, " %s | ",           NULL    },
+       { run_command, " %s | ",        "amixer sget Master | tail -1 | awk '{print $5 }' | sed 's@\\(\\[\\|\\]\\)@@g'"},
+       { datetime, " %s ",           "%a %F %T" },
 };
+;