2016-03-16 08:01:07 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
2016-03-16 07:45:19 +00:00
|
|
|
/* global variables */
|
|
|
|
static Display *dpy;
|
|
|
|
|
|
|
|
/* statusbar configuration type and struct */
|
|
|
|
typedef char *(*op_fun) (const char *);
|
|
|
|
struct arg {
|
|
|
|
op_fun func;
|
|
|
|
const char *format;
|
|
|
|
const char *args;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* functions */
|
|
|
|
void setstatus(const char *);
|
|
|
|
char *smprintf(const char *, ...);
|
2016-03-18 15:15:05 +00:00
|
|
|
char *battery_perc(const char *);
|
|
|
|
char *cpu_perc(const char *);
|
|
|
|
char *datetime(const char *);
|
2016-06-10 18:13:13 +01:00
|
|
|
char *disk_free(const char *);
|
2016-03-18 15:15:05 +00:00
|
|
|
char *disk_perc(const char *);
|
2016-06-10 18:13:13 +01:00
|
|
|
char *disk_total(const char *);
|
|
|
|
char *disk_used(const char *);
|
2016-06-03 12:04:15 +01:00
|
|
|
char *entropy(const char*);
|
2016-06-13 17:49:50 +01:00
|
|
|
char *gid(const char*);
|
2016-06-10 14:53:07 +01:00
|
|
|
char *hostname(const char *);
|
2016-06-08 08:42:32 +01:00
|
|
|
char *ip(const char *);
|
2016-06-10 17:46:47 +01:00
|
|
|
char *ram_free(const char *);
|
2016-03-18 15:15:05 +00:00
|
|
|
char *ram_perc(const char *);
|
2016-06-10 17:46:47 +01:00
|
|
|
char *ram_used(const char *);
|
|
|
|
char *ram_total(const char *);
|
2016-03-18 15:15:05 +00:00
|
|
|
char *temp(const char *);
|
2016-06-13 17:49:50 +01:00
|
|
|
char *uid(const char*);
|
|
|
|
char *username(const char*);
|
2016-03-18 15:15:05 +00:00
|
|
|
char *vol_perc(const char *);
|
|
|
|
char *wifi_perc(const char *);
|