reorganise datetime

This commit is contained in:
Maddie H 2023-02-19 16:44:48 +00:00
parent 97880c5f86
commit b22f3d8ec8
No known key found for this signature in database
GPG Key ID: 64FAA9959751687D

View File

@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
/* interval between updates (in ms) */ /* interval between updates (in ms) */
const unsigned int interval = 1000; const unsigned int interval = 500;
/* text to show if no value can be retrieved */ /* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a"; static const char unknown_str[] = "n/a";
@ -64,7 +64,7 @@ static const char unknown_str[] = "n/a";
* wifi_essid WiFi ESSID interface name (wlan0) * wifi_essid WiFi ESSID interface name (wlan0)
*/ */
static const struct arg args[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ run_command, " %s |", "sb-volume" }, { run_command, " %s |", "sb-volume" },
/* { wifi_perc, "  %s%% |", "wlp3s0" }, */ /* { wifi_perc, "  %s%% |", "wlp3s0" }, */
{ disk_perc, "  %s%% |", "/" }, { disk_perc, "  %s%% |", "/" },
@ -74,5 +74,6 @@ static const struct arg args[] = {
{ uptime, "  %s |", NULL }, { uptime, "  %s |", NULL },
/* { kernel_release, "  %s |", NULL }, */ /* { kernel_release, "  %s |", NULL }, */
{ ipv4, "  %s |", "wlp3s0" }, { ipv4, "  %s |", "wlp3s0" },
{ datetime, "  %s ", "%Y-%m-%d %T" }, { datetime, "  %s |", "%Y-%m-%d" },
{ datetime, "  %s ", "%T %p" },
}; };