-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
executable file
·35 lines (31 loc) · 1.02 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef CONFIG_H
#define CONFIG_H
typedef enum {
cmus_info, /* cmus song info and position */
uptime_info, /* uptime */
loadavg_info, /* load average for last minute */
mem_info, /* mem usage in MiB */
statgen_info, /* time taken to generate and set status */
datetime_info, /* date and time according to TIME_FORMAT */
disk_free, /* free space on disk */
current_keymap, /* current keymap */
portage_installed /* amount of packages installed with gentoo's package manager */
} component;
/*
* https://strftime.org
* (this is for Python, but should be the same for C.)
*/
#define TIME_FORMAT "%A %B %d %I:%M:%S %p"
#define ITEM_SEP " | " /* separator between each item */
#define DISK_PATH "/" /* path where disk to show free space of is mounted */
/* items to include in status */
static const component status_components[] = {
cmus_info,
current_keymap,
disk_free,
uptime_info,
loadavg_info,
mem_info,
datetime_info,
};
#endif