mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-28 14:25:41 +00:00
02af858a35
All the info function names started with "get_", which I removed to make it easier for the user to configure the program to its needs. Additionally I renamed some functions (e.g. get_ram_usage) to better names, making it easier to extend the program with ram usage / total functions.
25 lines
593 B
C
25 lines
593 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_perc(const char *);
|
|
char *ram_perc(const char *);
|
|
char *temp(const char *);
|
|
char *vol_perc(const char *);
|
|
char *wifi_perc(const char *);
|