1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +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

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