slstatus

status monitor
git clone git://git.suckless.org/slstatus
Log | Files | Refs | README | LICENSE

commit d77f216faea5566ba8ebdbf1456c5e6806d2eeb5
parent 40f13be551f0e1a0eaee07dcb64b3b6ab3a68dd9
Author: planet36 <planet36@users.noreply.github.com>
Date:   Fri,  2 Apr 2021 14:11:00 -0400

Sort functions by name

Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>

Diffstat:
Mconfig.def.h | 8++++----
Mslstatus.h | 6+++---
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -14,13 +14,13 @@ static const char unknown_str[] = "n/a"; * * battery_perc battery percentage battery name (BAT0) * NULL on OpenBSD/FreeBSD - * battery_state battery charging state battery name (BAT0) - * NULL on OpenBSD/FreeBSD * battery_remaining battery remaining HH:MM battery name (BAT0) * NULL on OpenBSD/FreeBSD + * battery_state battery charging state battery name (BAT0) + * NULL on OpenBSD/FreeBSD * cat read arbitrary file path - * cpu_perc cpu usage in percent NULL * cpu_freq cpu frequency in MHz NULL + * cpu_perc cpu usage in percent NULL * datetime date and time format string (%F %T) * disk_free free disk space in GB mountpoint path (/) * disk_perc disk usage in percent mountpoint path (/) @@ -60,8 +60,8 @@ static const char unknown_str[] = "n/a"; * username username of current user NULL * vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer) * NULL on OpenBSD/FreeBSD - * wifi_perc WiFi signal in percent interface name (wlan0) * wifi_essid WiFi ESSID interface name (wlan0) + * wifi_perc WiFi signal in percent interface name (wlan0) */ static const struct arg args[] = { /* function format argument */ diff --git a/slstatus.h b/slstatus.h @@ -2,8 +2,8 @@ /* battery */ const char *battery_perc(const char *); -const char *battery_state(const char *); const char *battery_remaining(const char *); +const char *battery_state(const char *); /* cat */ const char *cat(const char *path); @@ -73,12 +73,12 @@ const char *uptime(const char *unused); /* user */ const char *gid(const char *unused); -const char *username(const char *unused); const char *uid(const char *unused); +const char *username(const char *unused); /* volume */ const char *vol_perc(const char *card); /* wifi */ -const char *wifi_perc(const char *interface); const char *wifi_essid(const char *interface); +const char *wifi_perc(const char *interface);