slstatus

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

config.h (4180B)


      1 /* interval between updates (in ms) */
      2 const unsigned int interval = 900;
      3 
      4 /* text to show if no value can be retrieved */
      5 static const char unknown_str[] = "";
      6 
      7 /* maximum output string length */
      8 #define MAXLEN 2048
      9 
     10 static const struct arg args[] = {
     11     /* function     format            argument */
     12     {run_command, " %s |", "mpc current"},
     13     {wifi_essid, " %s ", "wlan0"},
     14     {wifi_perc, " %s%% ", "wlan0"},
     15     /* { netspeed_rx,  " i%6.4s ",       "wlan0" }, */
     16     /* { netspeed_tx,  " o%6.4s ",        "wlan0" }, */
     17     {run_command, "| v %s |", "pamixer --get-volume-human"},
     18     {battery_perc, " b %s%% |", "BAT0"},
     19     {datetime, " %s ", "%F %I:%M %p"},
     20 };
     21 
     22 /*
     23  * function            description                     argument (example)
     24  *
     25  * battery_perc        battery percentage              battery name (BAT0)
     26  *                                                     NULL on OpenBSD/FreeBSD
     27  * battery_state       battery charging state          battery name (BAT0)
     28  *                                                     NULL on OpenBSD/FreeBSD
     29  * battery_remaining   battery remaining HH:MM         battery name (BAT0)
     30  *                                                     NULL on OpenBSD/FreeBSD
     31  * cpu_perc            cpu usage in percent            NULL
     32  * cpu_freq            cpu frequency in MHz            NULL
     33  * datetime            date and time                   format string (%F %T)
     34  * disk_free           free disk space in GB           mountpoint path (/)
     35  * disk_perc           disk usage in percent           mountpoint path (/)
     36  * disk_total          total disk space in GB          mountpoint path (/")
     37  * disk_used           used disk space in GB           mountpoint path (/)
     38  * entropy             available entropy               NULL
     39  * gid                 GID of current user             NULL
     40  * hostname            hostname                        NULL
     41  * ipv4                IPv4 address                    interface name (eth0)
     42  * ipv6                IPv6 address                    interface name (eth0)
     43  * kernel_release      `uname -r`                      NULL
     44  * keyboard_indicators caps/num lock indicators        format string (c?n?)
     45  *                                                     see keyboard_indicators.c
     46  * keymap              layout (variant) of current     NULL
     47  *                     keymap
     48  * load_avg            load average                    NULL
     49  * netspeed_rx         receive network speed           interface name (wlan0)
     50  * netspeed_tx         transfer network speed          interface name (wlan0)
     51  * num_files           number of files in a directory  path
     52  *                                                     (/home/foo/Inbox/cur)
     53  * ram_free            free memory in GB               NULL
     54  * ram_perc            memory usage in percent         NULL
     55  * ram_total           total memory size in GB         NULL
     56  * ram_used            used memory in GB               NULL
     57  * run_command         custom shell command            command (echo foo)
     58  * separator           string to echo                  NULL
     59  * swap_free           free swap in GB                 NULL
     60  * swap_perc           swap usage in percent           NULL
     61  * swap_total          total swap size in GB           NULL
     62  * swap_used           used swap in GB                 NULL
     63  * temp                temperature in degree celsius   sensor file
     64  *                                                     (/sys/class/thermal/...)
     65  *                                                     NULL on OpenBSD
     66  *                                                     thermal zone on FreeBSD
     67  *                                                     (tz0, tz1, etc.)
     68  * uid                 UID of current user             NULL
     69  * uptime              system uptime                   NULL
     70  * username            username of current user        NULL
     71  * vol_perc            OSS/ALSA volume in percent      mixer file (/dev/mixer)
     72  *                                                     NULL on OpenBSD
     73  * wifi_perc           WiFi signal in percent          interface name (wlan0)
     74  * wifi_essid          WiFi ESSID                      interface name (wlan0)
     75  */