config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit a5b9807743773ea1c49292557efba7a714924691
parent 2745f92288ec3be7d396ba119261596a6754a56f
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu, 13 Apr 2023 13:28:58 -0700

Update slstatus format

Diffstat:
Mlocal/src/src/forks/slstatus/patches/config.diff | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/local/src/src/forks/slstatus/patches/config.diff b/local/src/src/forks/slstatus/patches/config.diff @@ -1,15 +1,15 @@ Author: Jacob R. Edwards -Date: 2022-11-27 +Date: 2023-04-07 -Custom configuration. +Slstatus config.h. Requires first_line patch. ---- /dev/null Sun Nov 27 09:59:36 2022 -+++ config.h Sun Nov 27 09:58:27 2022 +--- /dev/null Fri Apr 7 08:38:13 2023 ++++ config.h Fri Apr 7 08:38:01 2023 @@ -0,0 +1,70 @@ +/* See LICENSE file for copyright and license details. */ + +/* interval between updates (in ms) */ -+const unsigned int interval = 1000 * 60; ++const unsigned int interval = 1000; + +/* text to show if no value can be retrieved */ +static const char unknown_str[] = "n/a"; @@ -72,7 +72,7 @@ Custom configuration. + * wifi_essid WiFi ESSID interface name (wlan0) + */ +static const struct arg args[] = { -+ /* function format argument */ -+ { datetime, " %s |", "%F %R %z (%b, %a, %Z)" }, -+ { run_command, " %s ", "uname -sr" } ++ /* function format argument */ ++ { first_line, " %s |", "/tmp/status" }, ++ { datetime, " %s", "%F %T %z (%a %b %Z)" } +};