2016-03-16 09:01:07 +01:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
2016-03-16 08:45:19 +01: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 16:15:05 +01:00
|
|
|
char *battery_perc(const char *);
|
|
|
|
char *cpu_perc(const char *);
|
|
|
|
char *datetime(const char *);
|
|
|
|
char *disk_perc(const char *);
|
|
|
|
char *ram_perc(const char *);
|
|
|
|
char *temp(const char *);
|
|
|
|
char *vol_perc(const char *);
|
|
|
|
char *wifi_perc(const char *);
|