sexy config.def.h table

This commit is contained in:
Aaron Marcher 2017-08-14 14:04:21 +02:00
parent 0f7e022381
commit fcc5c683a6
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A
1 changed files with 38 additions and 35 deletions

View File

@ -9,41 +9,44 @@ static const char unknown_str[] = "n/a";
/* maximum output string length */ /* maximum output string length */
#define MAXLEN 2048 #define MAXLEN 2048
/* statusbar /*
- battery_perc (battery percentage) [argument: battery name] * function description argument
- battery_power (battery power usage) [argument: battery name] *
- battery_state (battery charging state) [argument: battery name] * battery_perc battery percentage battery name
- cpu_perc (cpu usage in percent) [argument: NULL] * battery_power battery power usage battery name
- cpu_freq (cpu frequency) [argument: NULL] * battery_state battery charging state battery name
- datetime (date and time) [argument: format] * cpu_perc cpu usage in percent NULL
- disk_free (free disk space in GB) [argument: mountpoint] * cpu_freq cpu frequency in MHz NULL
- disk_perc (disk usage in percent) [argument: mountpoint] * datetime date and time format string
- disk_total (total disk space in GB) [argument: mountpoint] * disk_free free disk space in GB mountpoint path
- disk_used (used disk space in GB) [argument: mountpoint] * disk_perc disk usage in percent mountpoint path
- entropy (available entropy) [argument: NULL] * disk_total total disk space in GB mountpoint path
- gid (gid of current user) [argument: NULL] * disk_used used disk space in GB mountpoint path
- hostname [argument: NULL] * entropy available entropy NULL
- ip (ip address) [argument: interface] * gid GID of current user NULL
- kernel_release (uname -r) [argument: NULL] * hostname hostname NULL
- keyboard_indicators (caps/num lock indicators) [agrument: NULL] * ip IPv4 address interface name
- load_avg (load average) [argument: NULL] * kernel_release `uname -r` NULL
- num_files (number of files in a directory - hint: maildir) [argument: path] * keyboard_indicators caps/num lock indicators NULL
- ram_free (free ram in GB) [argument: NULL] * load_avg load average NULL
- ram_perc (ram usage in percent) [argument: NULL] * num_files number of files in a directory path
- ram_total (total ram in GB) [argument: NULL] * ram_free free memory in GB NULL
- ram_used (used ram in GB) [argument: NULL] * ram_perc memory usage in percent NULL
- run_command (run custom shell command) [argument: command] * ram_total total memory size in GB NULL
- swap_free (free swap in GB) [argument: NULL] * ram_used used memory in GB NULL
- swap_perc (swap usage in percent) [argument: NULL] * run_command custom shell command command
- swap_total (total swap in GB) [argument: NULL] * swap_free free swap in GB NULL
- swap_used (used swap in GB) [argument: NULL] * swap_perc swap usage in percent NULL
- temp (temperature in celsius) [argument: temperature file] * swap_total total swap size in GB NULL
- uid (uid of current user) [argument: NULL] * swap_used used swap in GB NULL
- uptime (uptime) [argument: NULL] * temp temperature in degree celsius sensor file
- username (username of current user) [argument: NULL] * uid UID of current user NULL
- vol_perc (oss/alsa volume status (see README)) [argument: /dev/mixer] * uptime system uptime NULL
- wifi_perc (wifi signal in percent) [argument: wifi card interface name] * username username of current user NULL
- wifi_essid (wifi essid) [argument: wifi card interface name] */ * vol_perc OSS/ALSA volume in percent "/dev/mixer"
* wifi_perc WiFi signal in percent interface name
* wifi_essid WiFi ESSID interface name
*/
static const struct arg args[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ cpu_perc, "[CPU %3s%%] ", NULL }, { cpu_perc, "[CPU %3s%%] ", NULL },