1
0
Fork 0

Sort functions by name

Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>
This commit is contained in:
planet36 2021-04-02 14:11:00 -04:00 committed by drkhsh
parent 40f13be551
commit d77f216fae
2 changed files with 7 additions and 7 deletions

View file

@ -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 */

View file

@ -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);