1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

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.
This commit is contained in:
Linus Groh 2020-04-11 00:00:44 +01:00 committed by Andreas Kling
parent b46a8d7335
commit 54fc972a72
3 changed files with 108 additions and 21 deletions

View file

@ -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

View file

@ -24,4 +24,4 @@ DoubleClickSpeed=250
Mode=scaled
[Applet]
Order=Clock,Audio,ResourceGraph,UserName
Order=Clock,Audio,CPUGraph,MemoryGraph,UserName