summaryrefslogtreecommitdiff
path: root/Base/etc
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-11 00:00:44 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-11 10:03:12 +0200
commit54fc972a72f1b6a36c0ad4fb7c812a7f929cefbe (patch)
tree941d639fe703f16afb9604f3ba3b9b0aa4f122f9 /Base/etc
parentb46a8d73355a3da6dcd0005eb82e3280559215b2 (diff)
downloadserenity-54fc972a72f1b6a36c0ad4fb7c812a7f929cefbe.zip
MenuApplets: Support memory usage and custom colors in ResourceGraph
The ResourceGraph menu applet now supports a few command line options: --cpu / -C to display a CPU usage graph --memory / -M to display a memory usage graph --name / -n to set a name which is used to order applets --color / -c to set the graph color (supports anything Gfx::Color::from_string() understands) The SystemServer.ini and WindowServer.ini config files have been updated to spawn and show two ResourceGraph menu applets, one for CPU usage (green) and one for memory usage (cyan) - this matches the colors in the SystemMonitor graphs.
Diffstat (limited to 'Base/etc')
-rw-r--r--Base/etc/SystemServer.ini10
-rw-r--r--Base/etc/WindowServer/WindowServer.ini2
2 files changed, 10 insertions, 2 deletions
diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini
index 5fb700fc4e..2fe65cabaf 100644
--- a/Base/etc/SystemServer.ini
+++ b/Base/etc/SystemServer.ini
@@ -48,7 +48,15 @@ User=anon
KeepAlive=1
User=anon
-[ResourceGraph.MenuApplet]
+[CPUGraph.MenuApplet]
+Executable=/bin/ResourceGraph.MenuApplet
+Arguments=--cpu --name=CPUGraph --color=limegreen
+KeepAlive=1
+User=anon
+
+[MemoryGraph.MenuApplet]
+Executable=/bin/ResourceGraph.MenuApplet
+Arguments=--memory --name=MemoryGraph --color=cyan
KeepAlive=1
User=anon
diff --git a/Base/etc/WindowServer/WindowServer.ini b/Base/etc/WindowServer/WindowServer.ini
index 248bbcb9c2..a8472975a0 100644
--- a/Base/etc/WindowServer/WindowServer.ini
+++ b/Base/etc/WindowServer/WindowServer.ini
@@ -24,4 +24,4 @@ DoubleClickSpeed=250
Mode=scaled
[Applet]
-Order=Clock,Audio,ResourceGraph,UserName
+Order=Clock,Audio,CPUGraph,MemoryGraph,UserName