Update config
This commit is contained in:
parent
549b774e34
commit
a1943c32cc
19
config.h
19
config.h
@ -14,16 +14,17 @@ static const char unknown_str[] = "n/a";
|
|||||||
*
|
*
|
||||||
* battery_perc battery percentage battery name (BAT0)
|
* battery_perc battery percentage battery name (BAT0)
|
||||||
* NULL on OpenBSD/FreeBSD
|
* 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)
|
* battery_remaining battery remaining HH:MM battery name (BAT0)
|
||||||
* NULL on OpenBSD/FreeBSD
|
* NULL on OpenBSD/FreeBSD
|
||||||
* cpu_perc cpu usage in percent NULL
|
* battery_state battery charging state battery name (BAT0)
|
||||||
|
* NULL on OpenBSD/FreeBSD
|
||||||
|
* cat read arbitrary file path
|
||||||
* cpu_freq cpu frequency in MHz NULL
|
* cpu_freq cpu frequency in MHz NULL
|
||||||
|
* cpu_perc cpu usage in percent NULL
|
||||||
* datetime date and time format string (%F %T)
|
* datetime date and time format string (%F %T)
|
||||||
* disk_free free disk space in GB mountpoint path (/)
|
* disk_free free disk space in GB mountpoint path (/)
|
||||||
* disk_perc disk usage in percent mountpoint path (/)
|
* disk_perc disk usage in percent mountpoint path (/)
|
||||||
* disk_total total disk space in GB mountpoint path (/")
|
* disk_total total disk space in GB mountpoint path (/)
|
||||||
* disk_used used disk space in GB mountpoint path (/)
|
* disk_used used disk space in GB mountpoint path (/)
|
||||||
* entropy available entropy NULL
|
* entropy available entropy NULL
|
||||||
* gid GID of current user NULL
|
* gid GID of current user NULL
|
||||||
@ -45,7 +46,6 @@ static const char unknown_str[] = "n/a";
|
|||||||
* ram_total total memory size in GB NULL
|
* ram_total total memory size in GB NULL
|
||||||
* ram_used used memory in GB NULL
|
* ram_used used memory in GB NULL
|
||||||
* run_command custom shell command command (echo foo)
|
* run_command custom shell command command (echo foo)
|
||||||
* separator string to echo NULL
|
|
||||||
* swap_free free swap in GB NULL
|
* swap_free free swap in GB NULL
|
||||||
* swap_perc swap usage in percent NULL
|
* swap_perc swap usage in percent NULL
|
||||||
* swap_total total swap size in GB NULL
|
* swap_total total swap size in GB NULL
|
||||||
@ -59,13 +59,16 @@ static const char unknown_str[] = "n/a";
|
|||||||
* uptime system uptime NULL
|
* uptime system uptime NULL
|
||||||
* username username of current user NULL
|
* username username of current user NULL
|
||||||
* vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
|
* vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
|
||||||
* NULL on OpenBSD
|
* NULL on OpenBSD/FreeBSD
|
||||||
* wifi_perc WiFi signal in percent interface name (wlan0)
|
|
||||||
* wifi_essid WiFi ESSID interface name (wlan0)
|
* wifi_essid WiFi ESSID interface name (wlan0)
|
||||||
|
* wifi_perc WiFi signal in percent interface name (wlan0)
|
||||||
*/
|
*/
|
||||||
static const struct arg args[] = {
|
static const struct arg args[] = {
|
||||||
/* function format argument */
|
/* function format argument */
|
||||||
{ cpu_perc, " CPU: %s% | ", NULL },
|
{ cpu_perc, " CPU: %s% | ", NULL },
|
||||||
{ ram_perc, "RAM: %s% | ", NULL },
|
{ ram_perc, "RAM: %s%, ", NULL },
|
||||||
|
{ ram_used, "%s | ", NULL },
|
||||||
|
{ netspeed_rx, "NET r:%s, ", "eno2" },
|
||||||
|
{ netspeed_tx, "t:%s | ", "eno2" },
|
||||||
{ datetime, "%s ", "%F %T" },
|
{ datetime, "%s ", "%F %T" },
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user