mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-30 15:25:41 +00:00
ad8ab20c63
I know formatting commits suck... And I try to avoid them. But this commit was absolutely necessary... The coding style in this program was not ok and not the same over the whole program. The commit is hard to read, but this is what I changed: - Tabs for indentation instead of spaces - Same style over the whole program (suckless style)
39 lines
993 B
C
39 lines
993 B
C
/* See LICENSE file for copyright and license details. */
|
|
|
|
/* 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 *, ...);
|
|
char *battery_perc(const char *);
|
|
char *cpu_perc(const char *);
|
|
char *datetime(const char *);
|
|
char *disk_free(const char *);
|
|
char *disk_perc(const char *);
|
|
char *disk_total(const char *);
|
|
char *disk_used(const char *);
|
|
char *entropy(const char*);
|
|
char *gid(const char*);
|
|
char *hostname(const char *);
|
|
char *ip(const char *);
|
|
char *ram_free(const char *);
|
|
char *ram_perc(const char *);
|
|
char *ram_used(const char *);
|
|
char *ram_total(const char *);
|
|
char *run_command(const char *);
|
|
char *temp(const char *);
|
|
char *uid(const char*);
|
|
char *username(const char*);
|
|
char *vol_perc(const char *);
|
|
char *wifi_perc(const char *);
|
|
char *wifi_essid(const char *);
|