slstatus/slstatus.h

41 lines
1.0 KiB
C
Raw Normal View History

2016-03-16 16:01:07 +08:00
/* See LICENSE file for copyright and license details. */
2016-03-16 15:45:19 +08: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;
2016-03-16 15:45:19 +08:00
};
/* functions */
void setstatus(const char *);
char *smprintf(const char *, ...);
char *battery_perc(const char *);
char *cpu_perc(const char *);
char *datetime(const char *);
2016-06-11 01:13:13 +08:00
char *disk_free(const char *);
char *disk_perc(const char *);
2016-06-11 01:13:13 +08:00
char *disk_total(const char *);
char *disk_used(const char *);
2016-06-03 19:04:15 +08:00
char *entropy(const char*);
2016-06-14 00:49:50 +08:00
char *gid(const char*);
2016-06-10 21:53:07 +08:00
char *hostname(const char *);
2016-06-08 15:42:32 +08:00
char *ip(const char *);
2016-08-18 19:30:45 +08:00
char *load_avg(const char *);
2016-06-11 00:46:47 +08:00
char *ram_free(const char *);
char *ram_perc(const char *);
2016-06-11 00:46:47 +08:00
char *ram_used(const char *);
char *ram_total(const char *);
char *run_command(const char *);
char *temp(const char *);
2016-06-14 00:49:50 +08:00
char *uid(const char*);
2016-08-18 19:43:18 +08:00
char *uptime(const char*);
2016-06-14 00:49:50 +08:00
char *username(const char*);
char *vol_perc(const char *);
char *wifi_perc(const char *);
2016-08-15 20:43:29 +08:00
char *wifi_essid(const char *);