summaryrefslogtreecommitdiff
path: root/multiload/data
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-02 09:54:00 +0100
committerraveit65 <[email protected]>2020-12-13 15:45:33 +0100
commit61e25238728dd5cb9922932a5b7279eb6cdb15da (patch)
tree07c73bb9d083054c0d71d0a19e019d6f5ab5c710 /multiload/data
parent3cf85cb5229c3e87fed2f926004fed724e94e8cb (diff)
downloadmate-applets-61e25238728dd5cb9922932a5b7279eb6cdb15da.tar.bz2
mate-applets-61e25238728dd5cb9922932a5b7279eb6cdb15da.tar.xz
multiload: Use common subdirs - src, data
Diffstat (limited to 'multiload/data')
-rw-r--r--multiload/data/Makefile.am44
-rw-r--r--multiload/data/multiload-applet-menu.xml6
-rw-r--r--multiload/data/org.mate.applets.MultiLoadApplet.mate-panel-applet.desktop.in.in17
-rw-r--r--multiload/data/org.mate.panel.applet.MultiLoadAppletFactory.service.in3
-rw-r--r--multiload/data/org.mate.panel.applet.multiload.gschema.xml.in156
5 files changed, 226 insertions, 0 deletions
diff --git a/multiload/data/Makefile.am b/multiload/data/Makefile.am
new file mode 100644
index 00000000..bacb6f1e
--- /dev/null
+++ b/multiload/data/Makefile.am
@@ -0,0 +1,44 @@
+multiload_gschema_in_files = org.mate.panel.applet.multiload.gschema.xml.in
+gsettings_SCHEMAS = $(multiload_gschema_in_files:.xml.in=.xml)
+@GSETTINGS_RULES@
+
+uidir = $(datadir)/mate/ui
+ui_DATA = multiload-applet-menu.xml
+
+appletdir = $(datadir)/mate-panel/applets
+applet_in_in_files = org.mate.applets.MultiLoadApplet.mate-panel-applet.desktop.in.in
+applet_in_files = $(applet_in_in_files:.desktop.in.in=.desktop.in)
+applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
+
+$(applet_in_files): $(applet_in_files).in Makefile
+ $(AM_V_GEN)sed \
+ -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
+ -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \
+ $< > $@
+
+$(applet_DATA): $(applet_in_files) Makefile
+ $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@
+
+servicedir = $(datadir)/dbus-1/services
+service_in_files = org.mate.panel.applet.MultiLoadAppletFactory.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+org.mate.panel.applet.MultiLoadAppletFactory.service: $(service_in_files)
+ $(AM_V_GEN)sed \
+ -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
+ $< > $@
+
+CLEANFILES = \
+ $(applet_DATA) \
+ $(applet_in_files) \
+ $(service_DATA) \
+ $(gsettings_SCHEMAS) \
+ *.gschema.valid
+
+EXTRA_DIST = \
+ $(applet_in_in_files) \
+ $(service_in_files) \
+ $(multiload_gschema_in_files) \
+ $(ui_DATA)
+
+-include $(top_srcdir)/git.mk
diff --git a/multiload/data/multiload-applet-menu.xml b/multiload/data/multiload-applet-menu.xml
new file mode 100644
index 00000000..88d28dd9
--- /dev/null
+++ b/multiload/data/multiload-applet-menu.xml
@@ -0,0 +1,6 @@
+<menuitem name="Procman Item" action="MultiLoadRunProcman" />
+<separator/>
+<menuitem name="Properties Item" action="MultiLoadProperties" />
+<menuitem name="Help" action="MultiLoadHelp" />
+<menuitem name="About Item" action="MultiLoadAbout" />
+
diff --git a/multiload/data/org.mate.applets.MultiLoadApplet.mate-panel-applet.desktop.in.in b/multiload/data/org.mate.applets.MultiLoadApplet.mate-panel-applet.desktop.in.in
new file mode 100644
index 00000000..3eacb2fb
--- /dev/null
+++ b/multiload/data/org.mate.applets.MultiLoadApplet.mate-panel-applet.desktop.in.in
@@ -0,0 +1,17 @@
+[Applet Factory]
+Id=MultiLoadAppletFactory
+Location=@LIBEXECDIR@/mate-multiload-applet
+Name=MultiLoad Applet Factory
+Description=Factory for creating the load applet.
+
+[MultiLoadApplet]
+Name=System Monitor
+Description=A system load indicator
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
+Icon=utilities-system-monitor
+MateComponentId=OAFIID:MATE_MultiLoadApplet
+X-MATE-Bugzilla-Bugzilla=MATE
+X-MATE-Bugzilla-Product=mate-applets
+X-MATE-Bugzilla-Component=multiload
+X-MATE-Bugzilla-Version=@VERSION@
+X-MATE-Bugzilla-OtherBinaries=multiload-applet-2
diff --git a/multiload/data/org.mate.panel.applet.MultiLoadAppletFactory.service.in b/multiload/data/org.mate.panel.applet.MultiLoadAppletFactory.service.in
new file mode 100644
index 00000000..d4c7da3c
--- /dev/null
+++ b/multiload/data/org.mate.panel.applet.MultiLoadAppletFactory.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.mate.panel.applet.MultiLoadAppletFactory
+Exec=@LIBEXECDIR@/mate-multiload-applet
diff --git a/multiload/data/org.mate.panel.applet.multiload.gschema.xml.in b/multiload/data/org.mate.panel.applet.multiload.gschema.xml.in
new file mode 100644
index 00000000..9f199bc3
--- /dev/null
+++ b/multiload/data/org.mate.panel.applet.multiload.gschema.xml.in
@@ -0,0 +1,156 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.panel.applet.multiload">
+ <key name="view-cpuload" type="b">
+ <default>true</default>
+ <summary>Enable CPU load graph</summary>
+ </key>
+ <key name="view-memload" type="b">
+ <default>false</default>
+ <summary>Enable memory load graph</summary>
+ </key>
+ <key name="view-netload" type="b">
+ <default>false</default>
+ <summary>Enable network load graph</summary>
+ </key>
+ <key name="view-swapload" type="b">
+ <default>false</default>
+ <summary>Enable swap load graph</summary>
+ </key>
+ <key name="view-loadavg" type="b">
+ <default>false</default>
+ <summary>Enable load average graph</summary>
+ </key>
+ <key name="view-diskload" type="b">
+ <default>false</default>
+ <summary>Enable disk load graph</summary>
+ </key>
+ <key name="speed" type="i">
+ <default>500</default>
+ <summary>Applet refresh rate in milliseconds</summary>
+ </key>
+ <key name="size" type="i">
+ <default>40</default>
+ <summary>Graph size</summary>
+ <description>For horizontal panels, the width of the graphs in pixels. For vertical panels, this is the height of the graphs.</description>
+ </key>
+ <key name="cpuload-color0" type="s">
+ <default>'#0072b3'</default>
+ <summary>Graph color for user-related CPU activity</summary>
+ </key>
+ <key name="cpuload-color1" type="s">
+ <default>'#0092e6'</default>
+ <summary>Graph color for system-related CPU activity</summary>
+ </key>
+ <key name="cpuload-color2" type="s">
+ <default>'#00a3ff'</default>
+ <summary>Graph color for nice-related CPU activity</summary>
+ </key>
+ <key name="cpuload-color3" type="s">
+ <default>'#002f3d'</default>
+ <summary>Graph color for iowait related CPU activity</summary>
+ </key>
+ <key name="cpuload-color4" type="s">
+ <default>'#000000'</default>
+ <summary>CPU graph background color</summary>
+ </key>
+ <key name="memload-color0" type="s">
+ <default>'#00b35b'</default>
+ <summary>Graph color for user-related memory usage</summary>
+ </key>
+ <key name="memload-color1" type="s">
+ <default>'#00e675'</default>
+ <summary>Graph color for shared memory</summary>
+ </key>
+ <key name="memload-color2" type="s">
+ <default>'#00ff82'</default>
+ <summary>Graph color for buffer memory</summary>
+ </key>
+ <key name="memload-color3" type="s">
+ <default>'#AAF5D0'</default>
+ <summary>Graph color for cached memory</summary>
+ </key>
+ <key name="memload-color4" type="s">
+ <default>'#000000'</default>
+ <summary>Memory graph background color</summary>
+ </key>
+ <key name="netload2-color0" type="s">
+ <default>'#fce94f'</default>
+ <summary>Graph color for input network activity</summary>
+ </key>
+ <key name="netload2-color1" type="s">
+ <default>'#edd400'</default>
+ <summary>Graph color for output network activity</summary>
+ </key>
+ <key name="netload2-color2" type="s">
+ <default>'#c4a000'</default>
+ <summary>Graph color for loopback network usage</summary>
+ </key>
+ <key name="netload2-color3" type="s">
+ <default>'#000000'</default>
+ <summary>Network graph background color</summary>
+ </key>
+ <key name="netload2-color4" type="s">
+ <default>'#ffffff'</default>
+ <summary>Grid line color</summary>
+ </key>
+ <key name="netload2-color5" type="s">
+ <default>'#0000ff'</default>
+ <summary>Indicator color</summary>
+ </key>
+ <key name="netthreshold1" type="u">
+ <range min="10" max="999999998"/>
+ <default>1000000</default>
+ <summary>Network threshold 1 in bytes</summary>
+ </key>
+ <key name="netthreshold2" type="u">
+ <range min="11" max="999999999"/>
+ <default>10000000</default>
+ <summary>Network threshold 2 in bytes</summary>
+ </key>
+ <key name="netthreshold3" type="u">
+ <range min="12" max="1000000000"/>
+ <default>100000000</default>
+ <summary>Network threshold 3 in bytes</summary>
+ </key>
+ <key name="swapload-color0" type="s">
+ <default>'#8b00c3'</default>
+ <summary>Graph color for user-related swap usage</summary>
+ </key>
+ <key name="swapload-color1" type="s">
+ <default>'#000000'</default>
+ <summary>Swap graph background color</summary>
+ </key>
+ <key name="loadavg-color0" type="s">
+ <default>'#d50000'</default>
+ <summary>Graph color for load average</summary>
+ </key>
+ <key name="loadavg-color1" type="s">
+ <default>'#000000'</default>
+ <summary>Load graph background color</summary>
+ </key>
+ <key name="loadavg-color2" type="s">
+ <default>'#ffffff'</default>
+ <summary>Grid line color</summary>
+ </key>
+ <key name="diskload-color0" type="s">
+ <default>'#C65000'</default>
+ <summary>Graph color for disk read</summary>
+ </key>
+ <key name="diskload-color1" type="s">
+ <default>'#FF6700'</default>
+ <summary>Graph color for disk write</summary>
+ </key>
+ <key name="diskload-color2" type="s">
+ <default>'#000000'</default>
+ <summary>Background color for disk load graph</summary>
+ </key>
+ <key name="diskload-nvme-diskstats" type="b">
+ <default>false</default>
+ <summary>Uses /proc/diskstats to determine NVMe disk load</summary>
+ </key>
+ <key name="system-monitor" type="s">
+ <default>'mate-system-monitor.desktop'</default>
+ <summary>The desktop description file to execute as the system monitor</summary>
+ </key>
+ </schema>
+</schemalist>