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