slstatus

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.beauhilton.com/slstatus.git
Log | Files | Refs | README | LICENSE

commit fd512b1448ee97ed06f71e4637b890bb69e5e5c2
parent 5ea0fcc3f8c8528054a993cbf57b5b0864450121
Author: Beau <cbeauhilton@gmail.com>
Date:   Tue, 30 Nov 2021 23:45:43 -0600

rearrange

Diffstat:
Mconfig.h | 25++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)

diff --git a/config.h b/config.h @@ -1,5 +1,3 @@ -/* See LICENSE file for copyright and license details. */ - /* interval between updates (in ms) */ const unsigned int interval = 1000; @@ -9,6 +7,18 @@ static const char unknown_str[] = ""; /* maximum output string length */ #define MAXLEN 2048 +static const struct arg args[] = { + /* function format argument */ + { run_command, " %s |", "mpc current" }, + { wifi_essid, " %s ", "wlan0" }, + { wifi_perc, " %s%% ", "wlan0" }, + /* { netspeed_rx, " i%6.4s ", "wlan0" }, */ + /* { netspeed_tx, " o%6.4s ", "wlan0" }, */ + { run_command, "| v %s |", "pamixer --get-volume-human" }, + { battery_perc, " b %s%% |", "BAT0" }, + { datetime, " %s ", "%F %I:%M %p" }, +}; + /* * function description argument (example) * @@ -63,14 +73,3 @@ static const char unknown_str[] = ""; * wifi_perc WiFi signal in percent interface name (wlan0) * wifi_essid WiFi ESSID interface name (wlan0) */ -static const struct arg args[] = { - /* function format argument */ - { run_command, " %s |", "mpc current" }, - { wifi_essid, " %s ", "wlan0" }, - { wifi_perc, " %s%% ", "wlan0" }, - /* { netspeed_rx, " i%6.4s ", "wlan0" }, */ - /* { netspeed_tx, " o%6.4s ", "wlan0" }, */ - { run_command, "| v %s |", "pamixer --get-volume-human" }, - { battery_perc, " b %s%% |", "BAT0" }, - { datetime, " %s ", "%F %I:%M %p" }, -};