diff options
author | rbuj <[email protected]> | 2020-12-17 19:52:59 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2020-12-25 00:22:04 +0000 |
commit | eddd0898e16124081e226b07fd0901ff0eae2871 (patch) | |
tree | 55d6e197c089ffd32a30d054ea4a0efd9ec83a9d /multiload/src/global.h | |
parent | dddc1ac496a3f94e2c2b780d8d89465459c8bd67 (diff) | |
download | mate-applets-eddd0898e16124081e226b07fd0901ff0eae2871.tar.bz2 mate-applets-eddd0898e16124081e226b07fd0901ff0eae2871.tar.xz |
multiload: Add properties.ui
Diffstat (limited to 'multiload/src/global.h')
-rw-r--r-- | multiload/src/global.h | 70 |
1 files changed, 57 insertions, 13 deletions
diff --git a/multiload/src/global.h b/multiload/src/global.h index 7b5db895..f40f194a 100644 --- a/multiload/src/global.h +++ b/multiload/src/global.h @@ -10,6 +10,31 @@ G_BEGIN_DECLS +#define KEY_CPULOAD_USR_COLOR "cpuload-color0" +#define KEY_CPULOAD_SYS_COLOR "cpuload-color1" +#define KEY_CPULOAD_NICE_COLOR "cpuload-color2" +#define KEY_CPULOAD_IOWAIT_COLOR "cpuload-color3" +#define KEY_CPULOAD_IDLE_COLOR "cpuload-color4" +#define KEY_MEMLOAD_USER_COLOR "memload-color0" +#define KEY_MEMLOAD_SHARED_COLOR "memload-color1" +#define KEY_MEMLOAD_BUFFER_COLOR "memload-color2" +#define KEY_MEMLOAD_CACHED_COLOR "memload-color3" +#define KEY_MEMLOAD_FREE_COLOR "memload-color4" +#define KEY_NETLOAD2_IN_COLOR "netload2-color0" +#define KEY_NETLOAD2_OUT_COLOR "netload2-color1" +#define KEY_NETLOAD2_LOOPBACK_COLOR "netload2-color2" +#define KEY_NETLOAD2_BACKGROUND_COLOR "netload2-color3" +#define KEY_NETLOAD2_GRIDLINE_COLOR "netload2-color4" +#define KEY_NETLOAD2_INDICATOR_COLOR "netload2-color5" +#define KEY_SWAPLOAD_USED_COLOR "swapload-color0" +#define KEY_SWAPLOAD_FREE_COLOR "swapload-color1" +#define KEY_LOADAVG_AVERAGE_COLOR "loadavg-color0" +#define KEY_LOADAVG_BACKGROUND_COLOR "loadavg-color1" +#define KEY_LOADAVG_GRIDLINE_COLOR "loadavg-color2" +#define KEY_DISKLOAD_READ_COLOR "diskload-color0" +#define KEY_DISKLOAD_WRITE_COLOR "diskload-color1" +#define KEY_DISKLOAD_FREE_COLOR "diskload-color2" + #define KEY_NET_THRESHOLD1 "netthreshold1" #define KEY_NET_THRESHOLD2 "netthreshold2" #define KEY_NET_THRESHOLD3 "netthreshold3" @@ -27,6 +52,8 @@ G_BEGIN_DECLS #define VIEW_LOADAVG_KEY "view-loadavg" #define VIEW_DISKLOAD_KEY "view-diskload" +#define DISKLOAD_NVME_KEY "diskload-nvme-diskstats" + #define REFRESH_RATE_KEY "speed" #define REFRESH_RATE_MIN 50 #define REFRESH_RATE_MAX 60000 @@ -52,6 +79,15 @@ typedef enum { } E_graph; typedef enum { + cpuload_usr = 0, + cpuload_sys, + cpuload_nice, + cpuload_iowait, + cpuload_free, + cpuload_n +} E_cpuload; + +typedef enum { memload_user = 0, memload_shared, memload_buffer, @@ -61,13 +97,27 @@ typedef enum { } E_memload; typedef enum { - cpuload_usr = 0, - cpuload_sys, - cpuload_nice, - cpuload_iowait, - cpuload_free, - cpuload_n -} E_cpuload; + netload2_in = 0, + netload2_out, + netload2_loopback, + netload2_background, + netload2_gridline, + netload2_indicator, + netload2_n +} E_netload2; + +typedef enum { + swapload_used = 0, + swapload_free, + swapload_n +} E_swapload; + +typedef enum { + loadavg_average = 0, + loadavg_background, + loadavg_gridline, + loadavg_n +} E_loadavg; typedef enum { diskload_read = 0, @@ -76,12 +126,6 @@ typedef enum { diskload_n } E_diskload; -typedef enum { - swapload_used = 0, - swapload_free, - swapload_n -} E_swapload; - struct _LoadGraph { MultiloadApplet *multiload; |