elementary/themes/edc/conf.edc \
elementary/themes/edc/connman.edc \
elementary/themes/edc/cpufreq.edc \
+elementary/themes/edc/cpumonitor.edc \
elementary/themes/edc/cslider.edc \
elementary/themes/edc/desklock.edc \
elementary/themes/edc/deskmirror.edc \
elementary/themes/edc/init.edc \
elementary/themes/edc/label.edc \
elementary/themes/edc/luncher.edc \
+elementary/themes/edc/memusage.edc \
elementary/themes/edc/menu.edc \
elementary/themes/edc/mixer.edc \
elementary/themes/edc/music_control.edc \
+elementary/themes/edc/netstatus.edc \
elementary/themes/edc/notification.edc \
elementary/themes/edc/packagekit.edc \
elementary/themes/edc/pager.edc \
elementary/themes/img/col_sel_end_left.png \
elementary/themes/img/col_sel_end_right.png \
elementary/themes/img/col_sel_end_top.png \
+elementary/themes/img/cpu_icon.png \
elementary/themes/img/darken_rounded_square_half_h.png \
elementary/themes/img/darken_rounded_square_half.png \
elementary/themes/img/darken_rounded_square.png \
elementary/themes/img/icon_warning.png \
elementary/themes/img/ic_win_move.png \
elementary/themes/img/ic_win_resize.png \
+elementary/themes/img/idle.png \
elementary/themes/img/img_example_1.png \
elementary/themes/img/img_example_2.png \
elementary/themes/img/inset_bar_horiz_base.png \
elementary/themes/img/map_marker.png \
elementary/themes/img/map_scale.png \
elementary/themes/img/media_busy_progress.png \
+elementary/themes/img/mem_icon.png \
elementary/themes/img/mini_blue_glow_arrow_0.png \
elementary/themes/img/mini_blue_glow_arrow_1.png \
elementary/themes/img/mini_blue_glow_arrow_2.png \
elementary/themes/img/pointer_mono.png \
elementary/themes/img/pointer.png \
elementary/themes/img/pointer_hand1.png \
+elementary/themes/img/meter_00.png \
+elementary/themes/img/meter_01.png \
+elementary/themes/img/meter_02.png \
+elementary/themes/img/meter_03.png \
+elementary/themes/img/meter_04.png \
+elementary/themes/img/meter_05.png \
+elementary/themes/img/meter_06.png \
+elementary/themes/img/meter_07.png \
+elementary/themes/img/meter_08.png \
+elementary/themes/img/meter_09.png \
+elementary/themes/img/meter_10.png \
elementary/themes/img/ring_shadow.png \
elementary/themes/img/ring_white_blue_glow.png \
elementary/themes/img/ring_white_middle.png \
elementary/themes/img/runner_glow_vert.png \
elementary/themes/img/runner_horiz.png \
elementary/themes/img/runner_vert.png \
+elementary/themes/img/rx.png \
elementary/themes/img/screen_base.png \
elementary/themes/img/screen_bg.png \
elementary/themes/img/screen_circular_shadow.png \
elementary/themes/img/tooltip-edge-left-tip.png \
elementary/themes/img/tooltip-edge-right-tip.png \
elementary/themes/img/tooltip-edge-top-tip.png \
+elementary/themes/img/tx.png \
elementary/themes/img/vert_bar_inset.png \
elementary/themes/img/vert_glow_run.png \
elementary/themes/img/vert_glow_range.png \
#include "edc/wireless.edc"
#include "edc/time.edc"
#include "edc/luncher.edc"
+#include "edc/memusage.edc"
+#include "edc/cpumonitor.edc"
+#include "edc/netstatus.edc"
// icons
#include "edc/icons.edc"
rel2.offset: -1 2;
color_class: "module_label_plain";
color3: 255 255 255 255;
- text { font: "Sans"; size: 8;
- min: 0 1;
+ text { font: "Sans";
fit: 1 1;
+ ellipsis: -1;
+ align: 0.5 0.5;
text_class: "module_small";
}
}
rel2.to: "bg";
color_class: "module_label_plain";
color3: 255 255 255 255;
- text { font: "Sans"; size: 8;
- min: 0 1;
+ text { font: "Sans";
fit: 1 1;
+ ellipsis: -1;
+ align: 0.5 0.5;
text_class: "module_small";
}
}
rel2.relative: 0.75 0.75;
color_class: "module_label";
color3: 255 255 255 255;
- text { font: FN; size: 6;
- min: 1 1;
+ text { font: FNBOLD; size: 6;
+ align: 0.5 0.5;
ellipsis: -1;
text_class: "module_small";
}
--- /dev/null
+group { name: "e/modules/cpumonitor/main";
+ image: "cpu_icon.png" COMP;
+ image: "mem_icon.png" COMP;
+ image: "meter_00.png" COMP;
+ image: "meter_01.png" COMP;
+ image: "meter_02.png" COMP;
+ image: "meter_03.png" COMP;
+ image: "meter_04.png" COMP;
+ image: "meter_05.png" COMP;
+ image: "meter_06.png" COMP;
+ image: "meter_07.png" COMP;
+ image: "meter_08.png" COMP;
+ image: "meter_09.png" COMP;
+ image: "meter_10.png" COMP;
+ script {
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_INT_SET) && (id == 1)) {
+ new status = getarg(2);
+ new text[16];
+ if (status == 0)
+ set_state(PART:"meter", "default", 0.0);
+ else if (status > 0 && status < 10)
+ set_state(PART:"meter", "default", 0.1);
+ else if (status >= 10 && status < 20)
+ set_state(PART:"meter", "default", 0.2);
+ else if (status >= 20 && status < 30)
+ set_state(PART:"meter", "default", 0.3);
+ else if (status >= 30 && status < 40)
+ set_state(PART:"meter", "default", 0.4);
+ else if (status >= 40 && status < 50)
+ set_state(PART:"meter", "default", 0.5);
+ else if (status >= 50 && status < 60)
+ set_state(PART:"meter", "default", 0.6);
+ else if (status >= 60 && status < 70)
+ set_state(PART:"meter", "default", 0.7);
+ else if (status >= 70 && status < 80)
+ set_state(PART:"meter", "default", 0.8);
+ else if (status >= 80 && status < 90)
+ set_state(PART:"meter", "default", 0.9);
+ else if (status >= 90 && status <= 100)
+ set_state(PART:"meter", "default", 1.0);
+ snprintf(text, sizeof(text), "CPU: %i %%", status);
+ set_text(PART:"status", text);
+ }
+ }
+ }
+ parts {
+ part { name: "fade_clip"; type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "base";
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "cpu_icon.png";
+ }
+ }
+ part { name: "meter";
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.1 0.4;
+ rel2.relative: 0.9 0.6;
+ image.normal: "meter_00.png";
+ color: 255 255 255 190;
+ }
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "meter_01.png";
+ }
+ description { state: "default" 0.2;
+ inherit: "default" 0.0;
+ image.normal: "meter_02.png";
+ }
+ description { state: "default" 0.3;
+ inherit: "default" 0.0;
+ image.normal: "meter_03.png";
+ }
+ description { state: "default" 0.4;
+ inherit: "default" 0.0;
+ image.normal: "meter_04.png";
+ }
+ description { state: "default" 0.5;
+ inherit: "default" 0.0;
+ image.normal: "meter_05.png";
+ }
+ description { state: "default" 0.6;
+ inherit: "default" 0.0;
+ image.normal: "meter_06.png";
+ }
+ description { state: "default" 0.7;
+ inherit: "default" 0.0;
+ image.normal: "meter_07.png";
+ }
+ description { state: "default" 0.8;
+ inherit: "default" 0.0;
+ image.normal: "meter_08.png";
+ }
+ description { state: "default" 0.9;
+ inherit: "default" 0.0;
+ image.normal: "meter_09.png";
+ }
+ description { state: "default" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "meter_10.png";
+ }
+ }
+ part { name: "status"; type: TEXT; mouse_events: 0;
+ scale: 1;
+ effect: SHADOW BOTTOM;
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ color_class: "module_label";
+ color3: 255 255 255 255;
+ rel1.relative: 0.1 0.0;
+ rel2.relative: 0.9 1.0;
+ text { font: FNBOLD;
+ fit: 1 1;
+ elipsis: -1;
+ align: 0.5 0.5;
+ text_class: "module_small";
+ }
+ }
+ }
+ }
+}
+
--- /dev/null
+group { name: "e/modules/memusage/main";
+ image: "mem_icon.png" COMP;
+ image: "meter_00.png" COMP;
+ image: "meter_01.png" COMP;
+ image: "meter_02.png" COMP;
+ image: "meter_03.png" COMP;
+ image: "meter_04.png" COMP;
+ image: "meter_05.png" COMP;
+ image: "meter_06.png" COMP;
+ image: "meter_07.png" COMP;
+ image: "meter_08.png" COMP;
+ image: "meter_09.png" COMP;
+ image: "meter_10.png" COMP;
+ script {
+ public slide_status(val) {
+ if (val == 0)
+ set_state(PART:"meter", "default", 0.0);
+ else if (val > 0 && val < 10)
+ set_state(PART:"meter", "default", 0.1);
+ else if (val >= 10 && val < 20)
+ set_state(PART:"meter", "default", 0.2);
+ else if (val >= 20 && val < 30)
+ set_state(PART:"meter", "default", 0.3);
+ else if (val >= 30 && val < 40)
+ set_state(PART:"meter", "default", 0.4);
+ else if (val >= 40 && val < 50)
+ set_state(PART:"meter", "default", 0.5);
+ else if (val >= 50 && val < 60)
+ set_state(PART:"meter", "default", 0.6);
+ else if (val >= 60 && val < 70)
+ set_state(PART:"meter", "default", 0.7);
+ else if (val >= 70 && val < 80)
+ set_state(PART:"meter", "default", 0.8);
+ else if (val >= 80 && val < 90)
+ set_state(PART:"meter", "default", 0.9);
+ else if (val >= 90 && val <= 100)
+ set_state(PART:"meter", "default", 1.0);
+ }
+ public slide_status_two(val) {
+ if (val == 0)
+ set_state(PART:"swap_meter", "default", 0.0);
+ else if (val > 0 && val < 10)
+ set_state(PART:"swap_meter", "default", 0.1);
+ else if (val >= 10 && val < 20)
+ set_state(PART:"swap_meter", "default", 0.2);
+ else if (val >= 20 && val < 30)
+ set_state(PART:"swap_meter", "default", 0.3);
+ else if (val >= 30 && val < 40)
+ set_state(PART:"swap_meter", "default", 0.4);
+ else if (val >= 40 && val < 50)
+ set_state(PART:"swap_meter", "default", 0.5);
+ else if (val >= 50 && val < 60)
+ set_state(PART:"swap_meter", "default", 0.6);
+ else if (val >= 60 && val < 70)
+ set_state(PART:"swap_meter", "default", 0.7);
+ else if (val >= 70 && val < 80)
+ set_state(PART:"swap_meter", "default", 0.8);
+ else if (val >= 80 && val < 90)
+ set_state(PART:"swap_meter", "default", 0.9);
+ else if (val >= 90 && val <= 100)
+ set_state(PART:"swap_meter", "default", 1.0);
+ }
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_INT_SET) && (id == 1)) {
+ new status = getarg(2);
+ new text[16];
+
+ slide_status(status);
+ snprintf(text, sizeof(text), "Mem: %i %%", status);
+ set_text(PART:"status", text);
+ }
+ if ((type == MSG_INT_SET) && (id == 2)) {
+ new status = getarg(2);
+ new text[16];
+
+ slide_status_two(status);
+ snprintf(text, sizeof(text), "Swap: %i %%", status);
+ set_text(PART:"swap_status", text);
+ }
+ }
+ }
+ parts {
+ part { name: "fade_clip"; type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "base";
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "mem_icon.png";
+ }
+ }
+ part { name: "meter";
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.1 0.2;
+ rel2.relative: 0.9 0.4;
+ image.normal: "meter_00.png";
+ color: 255 255 255 190;
+ }
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "meter_01.png";
+ }
+ description { state: "default" 0.2;
+ inherit: "default" 0.0;
+ image.normal: "meter_02.png";
+ }
+ description { state: "default" 0.3;
+ inherit: "default" 0.0;
+ image.normal: "meter_03.png";
+ }
+ description { state: "default" 0.4;
+ inherit: "default" 0.0;
+ image.normal: "meter_04.png";
+ }
+ description { state: "default" 0.5;
+ inherit: "default" 0.0;
+ image.normal: "meter_05.png";
+ }
+ description { state: "default" 0.6;
+ inherit: "default" 0.0;
+ image.normal: "meter_06.png";
+ }
+ description { state: "default" 0.7;
+ inherit: "default" 0.0;
+ image.normal: "meter_07.png";
+ }
+ description { state: "default" 0.8;
+ inherit: "default" 0.0;
+ image.normal: "meter_08.png";
+ }
+ description { state: "default" 0.9;
+ inherit: "default" 0.0;
+ image.normal: "meter_09.png";
+ }
+ description { state: "default" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "meter_10.png";
+ }
+ }
+ part { name: "status"; type: TEXT;
+ effect: SHADOW BOTTOM;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.relative: 0.1 0.2;
+ rel2.relative: 0.9 0.4;
+ color_class: "module_label";
+ color3: 255 255 255 255;
+ text { font: FNBOLD;
+ fit: 1 1;
+ ellipsis: -1;
+ align: 0.5 0.5;
+ text_class: "module_small";
+ }
+ }
+ }
+ part { name: "swap_meter";
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.1 0.5;
+ rel2.relative: 0.9 0.7;
+ image.normal: "meter_00.png";
+ color: 255 255 255 192;
+ }
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "meter_01.png";
+ }
+ description { state: "default" 0.2;
+ inherit: "default" 0.0;
+ image.normal: "meter_02.png";
+ }
+ description { state: "default" 0.3;
+ inherit: "default" 0.0;
+ image.normal: "meter_03.png";
+ }
+ description { state: "default" 0.4;
+ inherit: "default" 0.0;
+ image.normal: "meter_04.png";
+ }
+ description { state: "default" 0.5;
+ inherit: "default" 0.0;
+ image.normal: "meter_05.png";
+ }
+ description { state: "default" 0.6;
+ inherit: "default" 0.0;
+ image.normal: "meter_06.png";
+ }
+ description { state: "default" 0.7;
+ inherit: "default" 0.0;
+ image.normal: "meter_07.png";
+ }
+ description { state: "default" 0.8;
+ inherit: "default" 0.0;
+ image.normal: "meter_08.png";
+ }
+ description { state: "default" 0.9;
+ inherit: "default" 0.0;
+ image.normal: "meter_09.png";
+ }
+ description { state: "default" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "meter_10.png";
+ }
+ }
+ part { name: "swap_status"; type: TEXT;
+ effect: SHADOW BOTTOM;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.relative: 0.1 0.5;
+ rel2.relative: 0.9 0.7;
+ color_class: "module_label";
+ color3: 255 255 255 255;
+ text { font: FNBOLD;
+ fit: 1 1;
+ ellipsis: -1;
+ align: 0.5 0.5;
+ text_class: "module_small";
+ }
+ }
+ }
+ }
+}
+
--- /dev/null
+group { name: "e/modules/netstatus/main";
+ image: "rx.png" COMP;
+ image: "tx.png" COMP;
+ image: "idle.png" COMP;
+ parts {
+ part { name: "fade_clip"; type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "rx"; type: IMAGE;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ visible: 0;
+ rel1.to: "base";
+ rel2.to: "base";
+ image.normal: "rx.png";
+ color: 255 255 255 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "tx"; type: IMAGE;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ visible: 0;
+ rel1.to: "base";
+ rel2.to: "base";
+ image.normal: "tx.png";
+ color: 255 255 255 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "base";
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "idle.png";
+ }
+ }
+ part { name: "e.text.received"; type: TEXT; mouse_events: 0;
+ scale: 1;
+ effect: SHADOW BOTTOM;
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ color_class: "module_label";
+ color3: 255 255 255 255;
+ rel1.relative: 0.1 0.0;
+ rel2.relative: 0.9 0.5;
+ text { font: FNBOLD;
+ fit: 1 1;
+ elipsis: -1;
+ align: 0.5 0.5;
+ text_class: "module_small";
+ }
+ }
+ }
+ part { name: "e.text.transmitted"; type: TEXT; mouse_events: 0;
+ scale: 1;
+ effect: SHADOW BOTTOM;
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ color_class: "module_label";
+ color3: 255 255 255 255;
+ rel1.relative: 0.1 0.5;
+ rel2.relative: 0.9 1.0;
+ text { font: FNBOLD;
+ fit: 1 1;
+ elipsis: -1;
+ align: 0.5 0.5;
+ text_class: "module_small";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "received";
+ signal: "e,state,received,active";
+ source: "e";
+ action: STATE_SET "active" 0.0;
+ target: "rx";
+ transition: SINUSOIDAL 0.25;
+ }
+ program { name: "received_idle";
+ signal: "e,state,received,idle";
+ source: "e";
+ action: STATE_SET "default" 0.0;
+ target: "rx";
+ transition: SINUSOIDAL 0.25;
+ }
+ program { name: "transmitted";
+ signal: "e,state,transmitted,active";
+ source: "e";
+ action: STATE_SET "active" 0.0;
+ target: "tx";
+ transition: SINUSOIDAL 0.25;
+ }
+ program { name: "transmitted_idle";
+ signal: "e,state,transmitted,idle";
+ source: "e";
+ action: STATE_SET "default" 0.0;
+ target: "tx";
+ transition: SINUSOIDAL 0.25;
+ }
+ }
+}
+