2020-04-14 10:24:27 -07:00
|
|
|
#ifndef __CONFIGURATION_H__
|
|
|
|
#define __CONFIGURATION_H__
|
|
|
|
|
2020-05-12 16:51:30 -07:00
|
|
|
#include "ui/ui.h"
|
2020-04-14 10:24:27 -07:00
|
|
|
|
2021-03-10 04:51:21 -08:00
|
|
|
#define CONFIG_VERSION 0x0010
|
2020-04-14 10:24:27 -07:00
|
|
|
|
|
|
|
typedef struct _Evisum_Config
|
|
|
|
{
|
|
|
|
int version;
|
2020-12-28 12:20:15 -08:00
|
|
|
|
2020-08-30 16:36:00 -07:00
|
|
|
Eina_Bool effects;
|
2020-10-10 06:52:11 -07:00
|
|
|
Eina_Bool backgrounds;
|
2020-12-28 12:20:15 -08:00
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
2021-02-09 11:10:03 -08:00
|
|
|
Evas_Object *win;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int x, y;
|
|
|
|
Eina_Bool restart;
|
2020-12-28 12:20:15 -08:00
|
|
|
|
2021-02-09 11:10:03 -08:00
|
|
|
Eina_Bool show_kthreads;
|
|
|
|
Eina_Bool show_user;
|
|
|
|
unsigned char sort_type;
|
|
|
|
Eina_Bool sort_reverse;
|
|
|
|
unsigned char poll_delay;
|
2021-02-24 03:32:21 -08:00
|
|
|
unsigned int fields;
|
2021-01-20 00:49:00 -08:00
|
|
|
|
2021-02-09 11:10:03 -08:00
|
|
|
Eina_Bool show_scroller;
|
|
|
|
Eina_Bool transparant;
|
|
|
|
unsigned char alpha;
|
2020-12-28 12:20:15 -08:00
|
|
|
} proc;
|
2020-11-10 05:12:10 -08:00
|
|
|
|
2020-11-10 04:14:17 -08:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
2020-12-30 03:51:59 -08:00
|
|
|
int x, y;
|
|
|
|
Eina_Bool restart;
|
2020-11-10 04:14:17 -08:00
|
|
|
} cpu;
|
2020-11-10 05:12:10 -08:00
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
2020-12-30 03:51:59 -08:00
|
|
|
int x, y;
|
|
|
|
Eina_Bool restart;
|
2020-11-10 05:12:10 -08:00
|
|
|
} mem;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
2020-12-30 03:51:59 -08:00
|
|
|
int x, y;
|
|
|
|
Eina_Bool restart;
|
2020-11-10 05:12:10 -08:00
|
|
|
} disk;
|
|
|
|
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
2020-12-30 03:51:59 -08:00
|
|
|
int x, y;
|
|
|
|
Eina_Bool restart;
|
2020-11-10 05:12:10 -08:00
|
|
|
} sensors;
|
|
|
|
|
2021-03-10 04:51:21 -08:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int x, y;
|
|
|
|
Eina_Bool restart;
|
|
|
|
} network;
|
|
|
|
|
2020-04-14 10:24:27 -07:00
|
|
|
} Evisum_Config;
|
|
|
|
|
|
|
|
void config_init(void);
|
|
|
|
void config_shutdown(void);
|
|
|
|
Evisum_Config *config_load(void);
|
|
|
|
Eina_Bool config_save(Evisum_Config *);
|
|
|
|
|
|
|
|
#endif
|