From: Georgios Atheridis Date: Sat, 11 Feb 2023 02:00:49 +0000 (+0000) Subject: Apply personal config X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=suckless%2Fslstatus.git Apply personal config Added uptime, free ram, volume, and datetime. --- diff --git a/config.def.h b/config.def.h index d805331..1596999 100644 --- a/config.def.h +++ b/config.def.h @@ -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" }, }; +;